HttpClientCommonOptions
interface
stablesince v22.0
Common options for HttpClient requests.
headers
HttpHeaders | { [header: string]: string | string[]; } | undefinedobserve
"body" | "events" | "response" | undefinedparams
HttpParams | { [param: string]: string | number | boolean | readonly (string | number | boolean)[]; } | undefinedcontext
HttpContext | undefinedreportProgress
boolean | undefinedresponseType
HttpResponseType | undefinedwithCredentials
boolean | undefinedcredentials
RequestCredentials | undefinedkeepalive
boolean | undefinedpriority
RequestPriority | undefinedcache
RequestCache | undefinedmode
RequestMode | undefinedredirect
RequestRedirect | undefinedreferrer
string | undefinedintegrity
string | undefinedreferrerPolicy
ReferrerPolicy | undefinedtransferCache
HttpTransferCacheRequestOptions | undefinedThis property accepts either a boolean to enable/disable transferring cache for eligible
requests performed using HttpClient, or an object, which allows to configure cache
parameters, such as which headers should be included (no headers are included by default).
Setting this property will override the options passed to provideClientHydration() for this
particular request
timeout
number | undefinedJump to details