HttpResponse
class
A full HTTP response, including a typed response body (which may be null
if one was not returned).
class HttpResponse<T> extends HttpResponseBase { constructor(init: {...}) body: T | null type: HttpEventType.Response clone(update: {...}): HttpResponse<any> // inherited from common/http/HttpResponseBase constructor(init: {...}, defaultStatus: number = 200, defaultStatusText: string = 'OK') headers: HttpHeaders status: number statusText: string url: string | null ok: boolean type: HttpEventType.Response | HttpEventType.ResponseHeader }
Description
HttpResponse
is a HttpEvent
available on the response event stream.
Constructor
Construct a new | ||
|
init | Type: Optional. Default is |
Properties
Property | Description |
---|---|
body: T | null |
Read-only. The response body, or |
type: HttpEventType.Response | Read-only. |
Methods
clone() | ||||
---|---|---|---|---|
|
update | Type: |
Returns
clone<V>(update: {
body?: V | null;
headers?: HttpHeaders;
status?: number;
statusText?: string;
url?: string;
}): HttpResponse<V>
Parameters
update | Type: |
Returns
HttpResponse<V>
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/common/http/HttpResponse