Skip to content

AIDC Toolkit / Core / HTTPResponse

Interface: HTTPResponse

Defined in: http-fetch.ts:16

Generic HTTP response.

Properties

ok

readonly ok: boolean

Defined in: http-fetch.ts:20

True if OK.


status

readonly status: number

Defined in: http-fetch.ts:25

HTTP status code.


arrayBuffer()

readonly arrayBuffer: () => Promisable<ArrayBuffer>

Defined in: http-fetch.ts:30

Body as array buffer.

Returns

Promisable<ArrayBuffer>


text()

readonly text: () => Promisable<string>

Defined in: http-fetch.ts:35

Body as text.

Returns

Promisable<string>