HttpResponseBase
Class
stable
Base class for both HttpResponse and HttpHeaderResponse.
constructor
HttpResponseBaseSuper-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
HttpResponseBaseheaders
HttpHeadersAll response headers.
status
numberResponse status code.
statusText
stringTextual description of response status code, defaults to OK.
Do not depend on this.
url
string | nullURL of the resource retrieved, or null if not available.
ok
booleanWhether the status code falls in the 2xx range.
type
HttpEventType.ResponseHeader | HttpEventType.ResponseType of the response, narrowed to either the full response or the header.
Jump to details