Documentation
Github
Preparing search index...
iso-web
http
<internal>
RequestOptions
Interface RequestOptions
interface
RequestOptions
{
body
?:
null
|
BodyInit
;
fetch
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
;
headers
?:
HeadersInit
;
json
?:
Jsonifiable
;
keepalive
?:
boolean
;
method
?:
string
;
onResponse
?:
(
response
:
Response
,
request
:
Request
,
)
=>
void
|
Response
|
Promise
<
void
|
Response
>
;
redirect
?:
RequestRedirect
;
retry
?:
RetryOptions
;
signal
?:
AbortSignal
;
timeout
?:
number
;
}
Index
Properties
body?
fetch?
headers?
json?
keepalive?
method?
on
Response?
redirect?
retry?
signal?
timeout?
Properties
Optional
body
body
?:
null
|
BodyInit
Optional
fetch
fetch
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
Type Declaration
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
URL
|
RequestInfo
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
string
|
URL
|
Request
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
Optional
headers
headers
?:
HeadersInit
Optional
json
json
?:
Jsonifiable
Optional
keepalive
keepalive
?:
boolean
Optional
method
method
?:
string
Optional
on
Response
onResponse
?:
(
response
:
Response
,
request
:
Request
,
)
=>
void
|
Response
|
Promise
<
void
|
Response
>
Optional
redirect
redirect
?:
RequestRedirect
Optional
retry
retry
?:
RetryOptions
Optional
signal
signal
?:
AbortSignal
Optional
timeout
timeout
?:
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
body
fetch
headers
json
keepalive
method
on
Response
redirect
retry
signal
timeout
Github
Documentation
Loading...
MDN Reference