Skip to content

Interface: HttpResponse<T> ​

Defined in: api/rust-fetch.d.ts:477

Type Parameters ​

T ​

T = any

Properties ​

body ​

body: T

Defined in: api/rust-fetch.d.ts:494


cached? ​

optional cached?: boolean

Defined in: api/rust-fetch.d.ts:481

With httpCache: true when served from the cache (fresh, or after a 304)


headers ​

headers: Record<string, string>

Defined in: api/rust-fetch.d.ts:493

Lower-cased header names; repeated headers are joined with ,


ok ​

ok: boolean

Defined in: api/rust-fetch.d.ts:489

true for 2xx responses (other statuses reject with an HttpError); false for a redirect resolved with redirect: 'manual'


resumes? ​

optional resumes?: number

Defined in: api/rust-fetch.d.ts:479

With resume: how many times the download continued after a broken connection


revalidated? ​

optional revalidated?: boolean

Defined in: api/rust-fetch.d.ts:483

With httpCache: true when a stale stored response was confirmed with a 304 Not Modified


status ​

status: number

Defined in: api/rust-fetch.d.ts:486


statusText ​

statusText: string

Defined in: api/rust-fetch.d.ts:487


timings? ​

optional timings?: RequestTimings

Defined in: api/rust-fetch.d.ts:485

Enabled by timings/hooks; streamed totals finalize at EOF/cancel.


url ​

url: string

Defined in: api/rust-fetch.d.ts:491

Final URL after redirects

Released under the MIT or Apache-2.0 license.