The response of an httpFetch call. Contains all the information returned by the requested endpoint.

Implements

Properties

Accessors

Properties

bytes: Bytes = ...

The response body result. This can be used to convert to JSON, text, etc.

contentLength: number = 0

The length of the content

headers: Map<string, string> = ...

The response headers

status: number = 0

The HTTP status code

url: string = ""

The URL that was fetched (when it needs to follow redirects)

Accessors

  • get ok(): boolean
  • Convenience property representing if the request ended normally

    Returns boolean