Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpHeaderResponse

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.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly headers

headers: HttpHeaders

All response headers.

Readonly ok

ok: boolean

Whether the status code falls in the 2xx range.

Readonly status

status: number

Response status code.

Readonly statusText

statusText: string

Textual description of response status code.

Do not depend on this.

Readonly type

type: ResponseHeader = HttpEventType.ResponseHeader

Readonly url

url: string | null

URL of the resource retrieved, or null if not available.

Methods

clone

  • Copy this HttpHeaderResponse, overriding its contents with the given parameter hash.

    Parameters

    • Default value update: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string } = {}
      • Optional headers?: HttpHeaders
      • Optional status?: number
      • Optional statusText?: string
      • Optional url?: string

    Returns HttpHeaderResponse

Generated using TypeDoc