{ "id": "api/common/http/HttpHeaderResponse", "title": "HttpHeaderResponse", "contents": "\n\n
\n
\n
\n \n API > @angular/common > @angular/common/http\n
\n \n
\n \n
\n

HttpHeaderResponselink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

A partial HTTP response which only includes the status and header data,\nbut no response body.

\n\n

See more...

\n
\n \n \n \n
\n\nclass HttpHeaderResponse extends HttpResponseBase {\n constructor(init: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; } = {})\n type: HttpEventType.ResponseHeader\n clone(update: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; } = {}): HttpHeaderResponse\n\n // inherited from common/http/HttpResponseBase\n constructor(init: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; }, defaultStatus: number = HttpStatusCode.Ok, defaultStatusText: string = 'OK')\n headers: HttpHeaders\n status: number\n statusText: string\n url: string | null\n ok: boolean\n type: HttpEventType.Response | HttpEventType.ResponseHeader\n}\n\n\n \n \n\n
\n\n\n \n\n \n \n
\n

Descriptionlink

\n

HttpHeaderResponse is a HttpEvent available on the response\nevent stream, only when progress events are requested.

\n\n \n
\n\n \n\n\n\n\n\n\n

Constructorlink

\n\n\n \n \n \n \n \n \n \n \n \n \n\n \n\n \n \n
\n

Create a new HttpHeaderResponse with the given parameters.

\n\n
\n
\n \n\n constructor(init: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; } = {})\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n
\n \n init\n object\n

Optional. Default is {}.

\n \n
\n\n \n\n\n \n\n \n
\n
\n\n\n\n\n
\n

Propertieslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
\n \n type: HttpEventType.ResponseHeader\n Read-Only\n \n \n \n
\n
\n\n\n\n
\n

Methodslink

\n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n\n \n \n
\n
\n

\n clone()\n \n link

\n \n
\n
\n

Copy this HttpHeaderResponse, overriding its contents with the\ngiven parameter hash.

\n\n
\n
\n \n\n clone(update: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; } = {}): HttpHeaderResponse\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n
\n \n update\n object\n

Optional. Default is {}.

\n \n
\n\n \n
Returns
\n

HttpHeaderResponse

\n\n \n\n\n \n\n \n
\n
\n\n \n
\n\n\n\n \n\n\n
\n
\n\n\n" }