zeed
Preparing search index...
fetchBasic
Function fetchBasic
fetchBasic
(
url
:
string
|
URL
,
fetchOptions
?:
fetchOptionsType
,
fetchFn
?:
(
input
:
RequestInfo
,
init
?:
RequestInit
)
=>
Promise
<
Response
>
,
)
:
Promise
<
Response
|
undefined
>
Simplified
fetch
wrapper.
Accepts a single fetch options object or an array of options which will be deep-merged.
Supports basic auth embedded in the URL (e.g.
https://user:pass@host/path
).
Normalizes headers to a
Headers
instance.
Returns the
Response
when status < 400, otherwise returns
undefined
.
Parameters
url
:
string
|
URL
fetchOptions
:
fetchOptionsType
= {}
fetchFn
:
(
input
:
RequestInfo
,
init
?:
RequestInit
)
=>
Promise
<
Response
>
= fetch
Returns
Promise
<
Response
|
undefined
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
zeed
Loading...
Simplified
fetchwrapper.Headersinstance.Responsewhen status < 400, otherwise returnsundefined.