• Overview
@angular/common/http

HttpRequestOptions

interface
stablesince v22.0

Options to configure the HttpRequest, like headers, parameters, etc.

API

    
      interface HttpRequestOptions {}
    
    

headers

HttpHeaders | undefined

context

HttpContext | undefined

reportProgress

boolean | undefined

params

HttpParams | 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