[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/common/http/HttpClientCommonOptions [Back]  [Original]

HttpClientCommonOptions Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/common/http

HttpClientCommonOptions

interface
stablesince v22.0

Common options for HttpClient requests.

On this page

    arrow_upward_alt Back to the top

    API

        
          interface HttpClientCommonOptions extends Omit<HttpRequestOptions, 'headers' | 'params'> {  headers?: HttpHeaders | { [header: string]: string | string[]; } | undefined;  observe?: "body" | "events" | "response" | undefined;  params?: HttpParams | { [param: string]: string | number | boolean | readonly (string | number | boolean)[]; } | undefined;  override context?: HttpContext | undefined;  override reportProgress?: boolean | undefined;  override reportUploadProgress?: boolean | undefined;  override reportDownloadProgress?: boolean | undefined;  override responseType?: HttpResponseType | undefined;  override withCredentials?: boolean | undefined;  override credentials?: RequestCredentials | undefined;  override keepalive?: boolean | undefined;  override priority?: RequestPriority | undefined;  override cache?: RequestCache | undefined;  override mode?: RequestMode | undefined;  override redirect?: RequestRedirect | undefined;  override referrer?: string | undefined;  override integrity?: string | undefined;  override referrerPolicy?: ReferrerPolicy | undefined;  override transferCache?: HttpTransferCacheRequestOptions | undefined;  override timeout?: number | undefined;}
        
        

    headers

    HttpHeaders | { [header: string]: string | string[]; } | undefined

    observe

    "body" | "events" | "response" | undefined

    params

    HttpParams | { [param: string]: string | number | boolean | readonly (string | number | boolean)[]; } | undefined

    context

    HttpContext | undefined

    reportProgress

    boolean | undefined
    @deprecated

    Use reportUploadProgress and reportDownloadProgress instead

    reportUploadProgress

    boolean | undefined

    When set to true a request emited against the FetchBackend will throw an error.

    reportDownloadProgress

    boolean | undefined

    responseType

    HttpResponseType | undefined

    withCredentials

    boolean | undefined

    credentials

    RequestCredentials | undefined

    keepalive

    boolean | undefined

    priority

    RequestPriority | undefined

    cache

    RequestCache | undefined

    mode

    RequestMode | undefined

    redirect

    RequestRedirect | undefined

    referrer

    string | undefined

    integrity

    string | undefined

    referrerPolicy

    ReferrerPolicy | undefined

    transferCache

    HttpTransferCacheRequestOptions | undefined

    This 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 | undefined
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page