HttpHeaderResponse
Class
A partial HTTP response which only includes the status and header data, but no response body.
API
Description
class HttpHeaderResponse extends HttpResponseBase {}
clone
Copy this HttpHeaderResponse
, overriding its contents with the
given parameter hash.
@paramupdate
{ headers?: HttpHeaders | undefined; status?: number | undefined; statusText?: string | undefined; url?: string | undefined; }
@returns
HttpHeaderResponse
headers
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.
Jump to details