HttpHeaderResponse
Class
stable
A partial HTTP response which only includes the status and header data, but no response body.
constructor
HttpHeaderResponseCreate a new HttpHeaderResponse with the given parameters.
@paraminit
{ headers?: HttpHeaders | undefined; status?: number | undefined; statusText?: string | undefined; url?: string | undefined; }@returns
HttpHeaderResponseclone
HttpHeaderResponseCopy this HttpHeaderResponse, overriding its contents with the
given parameter hash.
@paramupdate
{ headers?: HttpHeaders | undefined; status?: number | undefined; statusText?: string | undefined; url?: string | undefined; }@returns
HttpHeaderResponseheaders
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.
Description
A partial HTTP response which only includes the status and header data, but no response body.
HttpHeaderResponse is a HttpEvent available on the response
event stream, only when progress events are requested.
Jump to details