HttpResponseBase
Class
Base class for both HttpResponse
and HttpHeaderResponse
.
constructor
HttpResponseBase
Super-constructor for all responses.
The single parameter accepted is an initialization hash. Any properties of the response passed there will override the default values.
@paraminit
{ headers?: HttpHeaders | undefined; status?: number | undefined; statusText?: string | undefined; url?: string | undefined; }
@paramdefaultStatus
number
@paramdefaultStatusText
string
@returns
HttpResponseBase
headers
HttpHeaders
All response headers.
status
number
Response status code.
statusText
string
Textual description of response status code, defaults to OK.
Do not depend on this.
url
string | null
URL of the resource retrieved, or null if not available.
ok
boolean
Whether the status code falls in the 2xx range.
type
HttpEventType.ResponseHeader | HttpEventType.Response
Type of the response, narrowed to either the full response or the header.
Jump to details