HttpResponse
Fully downloaded response. Each body can be consumed once.
interface HttpResponse
Defined in ScriptApi.ts:1437
Properties
arrayBuffer
Returns the body bytes.
readonly arrayBuffer: () => Effect<ArrayBuffer, HttpError>
bodyUsed
readonly bodyUsed: boolean
headers
readonly headers: Headers
json
Parses JSON locally. Empty or invalid JSON fails.
readonly json: () => Effect<unknown, HttpError>
ok
True for status codes 200 through 299.
readonly ok: boolean
status
readonly status: number
statusText
readonly statusText: string
text
Decodes the body as UTF-8.
readonly text: () => Effect<string, HttpError>
url
Final URL after redirects.
readonly url: string