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?
optionalcached?: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?
optionalresumes?:number
Defined in: api/rust-fetch.d.ts:479
With resume: how many times the download continued after a broken connection
revalidated?
optionalrevalidated?: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?
optionaltimings?: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