Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new FastlyUpstreamResponse(url: string, responseHandle: number, responseBodyHandle: number): FastlyUpstreamResponse

Properties

Private _hasBodyFromHandle

_hasBodyFromHandle: boolean

Private _hasHeadersFromHandle

_hasHeadersFromHandle: boolean

Private _hasStatusFromHandle

_hasStatusFromHandle: boolean

Private _responseBodyHandle

_responseBodyHandle: number

Private _responseHandle

_responseHandle: number

Accessors

body

bodyUsed

  • get bodyUsed(): boolean
  • Returns boolean

    A boolean representing whether the Body has been consumed already or not.

headers

  • Get the Response headers.

    Returns Headers

    A Headers object of the HTTP response headers, for the Request.

ok

  • get ok(): boolean
  • Get if the response was ok/successful.

    Returns boolean

    a boolean that is true if the response was successful, false if not.

status

  • get status(): number
  • Get the HTTP status of the response.

    Returns number

    an unsigned 16 bit integer of the status code.

statusText

  • get statusText(): string
  • Get the text assosciated with the status code of the response.

    Returns string

    a string associated with the status text for the response status code.

url

  • get url(): string
  • Get the URL of where the response came from.

    Returns string

    a string of the URL.

Methods

_getBodyFromHandle

  • _getBodyFromHandle(): void
  • Returns void

_getBodyHandle

  • _getBodyHandle(): number
  • Returns number

_getHeadersFromHandle

  • _getHeadersFromHandle(): void
  • Returns void

_getStatusFromHandle

  • _getStatusFromHandle(): void
  • Returns void

arrayBuffer

  • arrayBuffer(): null | ArrayBuffer

text

  • text(): string

Legend

  • Constructor
  • Method
  • Private property

Generated using TypeDoc