api-def API Reference
Preparing search index...
FetchRequestBackend
Class FetchRequestBackend
Implements
RequestBackend
<
FetchBackendResponse
>
Index
Constructors
constructor
Properties
fetch
id
web
Socket
Constructor
Methods
convert
Response
extract
Response
From
Error
get
Error
Info
make
Request
Constructors
constructor
new
FetchRequestBackend
(
fetchLibrary
?:
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
,
)
=>
Promise
<
Response
>
&
typeof
fetch
,
webSocketConstructor
?:
WebSocketConstructor
,
)
:
FetchRequestBackend
Parameters
Optional
fetchLibrary
:
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
=>
Promise
<
Response
>
&
typeof
fetch
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
RequestInfo
|
URL
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
Optional
webSocketConstructor
:
WebSocketConstructor
Returns
FetchRequestBackend
Properties
fetch
fetch
:
|
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
=>
Promise
<
Response
>
&
typeof
fetch
|
undefined
= ...
Type Declaration
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
=>
Promise
<
Response
>
&
typeof
fetch
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
RequestInfo
|
URL
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
undefined
Readonly
id
id
:
"fetch"
web
Socket
Constructor
webSocketConstructor
:
WebSocketConstructor
|
undefined
= ...
Methods
convert
Response
convertResponse
<
T
>
(
context
:
RequestContext
,
response
:
FetchBackendResponse
&
{
__text
?:
string
}
,
)
:
Promise
<
ConvertedApiResponse
<
T
>
>
Type Parameters
T
Parameters
context
:
RequestContext
response
:
FetchBackendResponse
&
{
__text
?:
string
}
Returns
Promise
<
ConvertedApiResponse
<
T
>
>
extract
Response
From
Error
extractResponseFromError
(
error
:
Error
,
)
:
Promise
<
FetchBackendResponse
|
null
|
undefined
>
Parameters
error
:
Error
Returns
Promise
<
FetchBackendResponse
|
null
|
undefined
>
get
Error
Info
getErrorInfo
(
_error
:
Error
,
_response
:
ApiResponse
<
any
>
|
null
|
undefined
,
)
:
RequestBackendErrorInfo
|
undefined
Parameters
_error
:
Error
_response
:
ApiResponse
<
any
>
|
null
|
undefined
Returns
RequestBackendErrorInfo
|
undefined
make
Request
makeRequest
(
context
:
RequestContext
)
:
RequestOperation
<
FetchBackendResponse
>
Parameters
context
:
RequestContext
Returns
RequestOperation
<
FetchBackendResponse
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
fetch
id
web
Socket
Constructor
Methods
convert
Response
extract
Response
From
Error
get
Error
Info
make
Request
api-def API Reference
Loading...
MDN Reference