An outgoing HTTP request with an optional typed body.
class HttpRequest<T> { readonly body: T; readonly headers: HttpHeaders; readonly context: HttpContext; readonly reportProgress: boolean; readonly withCredentials: boolean; readonly responseType: "arraybuffer" | "blob" | "text" | "json"; readonly method: string; readonly params: HttpParams; readonly urlWithParams: string; readonly transferCache?: boolean | { includeHeaders?: string[]; }; serializeBody(): string | ArrayBuffer | Blob | FormData | URLSearchParams; detectContentTypeHeader(): string; clone(): HttpRequest<T>; clone(update: { headers?: HttpHeaders; context?: HttpContext; reportProgress?: boolean; params?: HttpParams; responseType?: "arraybuffer" | "blob" | "text" | "json"; ... 6 more ...; setParams?: { ...; }; }): HttpRequest<T>; clone<V>(update: { headers?: HttpHeaders; context?: HttpContext; reportProgress?: boolean; params?: HttpParams; responseType?: "arraybuffer" | "blob" | "text" | "json"; ... 6 more ...; setParams?: { ...; }; }): HttpRequest<V>;}