PipelineResponse interface
Metadata about a response received by the pipeline.
Properties
blob |
BROWSER ONLY The response body as a browser Blob. Always undefined in node.js. |
body |
The response body as text (string format) |
browser |
BROWSER ONLY The response body as a browser ReadableStream. Always undefined in node.js. |
headers | The HTTP response headers. |
readable |
NODEJS ONLY The response body as a node.js Readable stream. Always undefined in the browser. |
request | The request that generated this response. |
status | The HTTP status code of the response. |
Property Details
blobBody
BROWSER ONLY
The response body as a browser Blob. Always undefined in node.js.
blobBody?: Promise<Blob>
Property Value
Promise<Blob>
bodyAsText
The response body as text (string format)
bodyAsText?: null | string
Property Value
null | string
browserStreamBody
BROWSER ONLY
The response body as a browser ReadableStream. Always undefined in node.js.
browserStreamBody?: ReadableStream<Uint8Array>
Property Value
ReadableStream<Uint8Array>
headers
readableStreamBody
NODEJS ONLY
The response body as a node.js Readable stream. Always undefined in the browser.
readableStreamBody?: ReadableStream
Property Value
ReadableStream
request
status
The HTTP status code of the response.
status: number
Property Value
number