Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HttpOperationResponse

Package version

Wrapper object for http request and response. Deserialized object is stored in the parsedBody property when the response body is received in JSON or XML.

Hierarchy

Index

Properties

Optional blobBody

blobBody: Promise<Blob>

BROWSER ONLY

The response body as a browser Blob. Always undefined in node.js.

Optional bodyAsText

bodyAsText: string | null

The response body as text (string format)

headers

headers: HttpHeaders

The HTTP response headers.

Optional parsedBody

parsedBody: any

The response body as parsed JSON or XML

Optional parsedHeaders

parsedHeaders: undefined | object

The parsed HTTP response headers.

Optional readableStreamBody

readableStreamBody: NodeJS.ReadableStream

NODEJS ONLY

The response body as a node.js Readable stream. Always undefined in the browser.

request

request: WebResource

The raw request

status

status: number

The HTTP response status (e.g. 200)

Generated using TypeDoc