class
final
A partial HTTP response which only includes the status and header data, but no response body.
class HttpHeaderResponse extends HttpResponseBase { constructor(init: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; } = {}) type: HttpEventType.ResponseHeader clone(update: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; } = {}): HttpHeaderResponse // inherited from common/http/HttpResponseBase constructor(init: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; }, defaultStatus: number = HttpStatusCode.Ok, defaultStatusText: string = 'OK') headers: HttpHeaders status: number statusText: string url: string | null ok: boolean type: HttpEventType.Response | HttpEventType.ResponseHeader }
HttpHeaderResponse
is a HttpEvent
available on the response event stream, only when progress events are requested.
Create a new | |||
|
init | object | Optional. Default is |
Property | Description |
---|---|
type: HttpEventType.ResponseHeader | Read-Only |
clone() | |||
---|---|---|---|
Copy this | |||
|
update | object | Optional. Default is |
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/common/http/HttpHeaderResponse