Preparing search index...
The search index is not available
yet-another-fetch-mock
yet-another-fetch-mock
default
Class default
Hierarchy
default
Index
Constructors
constructor
Properties
configuration
real
Fetch
routes
scope
Methods
connect
delete
fetchproxy
find
Matching
Route
get
head
mock
options
patch
post
put
reset
restore
configure
get
Global
Constructors
constructor
new default
(
scope
:
Window
, configuration
:
Partial
<
Configuration
>
)
:
default
Parameters
scope:
Window
configuration:
Partial
<
Configuration
>
Returns
default
Properties
Private
configuration
configuration
:
Configuration
Private
real
Fetch
real
Fetch
:
(
(
input
:
RequestInfo
, init
?:
RequestInit
)
=>
Promise
<
Response
>
)
Type declaration
(
input
:
RequestInfo
, init
?:
RequestInit
)
:
Promise
<
Response
>
Parameters
input:
RequestInfo
Optional
init:
RequestInit
Returns
Promise
<
Response
>
Private
routes
routes
:
Route
[]
Private
scope
scope
:
Window
Methods
connect
connect
(
url
:
string
, handler
:
MockHandler
)
:
void
Parameters
url:
string
handler:
MockHandler
Returns
void
delete
delete
(
url
:
string
, handler
:
MockHandler
)
:
void
Parameters
url:
string
handler:
MockHandler
Returns
void
Private
fetchproxy
fetchproxy
(
input
:
RequestInfo
, init
?:
RequestInit
)
:
Promise
<
Response
>
Parameters
input:
RequestInfo
Optional
init:
RequestInit
Returns
Promise
<
Response
>
Private
find
Matching
Route
find
Matching
Route
(
input
:
RequestInfo
, init
?:
RequestInit
)
:
undefined
|
Route
Parameters
input:
RequestInfo
Optional
init:
RequestInit
Returns
undefined
|
Route
get
get
(
url
:
string
, handler
:
MockHandler
)
:
void
Parameters
url:
string
handler:
MockHandler
Returns
void
head
head
(
url
:
string
, handler
:
MockHandler
)
:
void
Parameters
url:
string
handler:
MockHandler
Returns
void
mock
mock
(
matcher
:
RouteMatcher
, handler
:
MockHandler
)
:
void
Parameters
matcher:
RouteMatcher
handler:
MockHandler
Returns
void
options
options
(
url
:
string
, handler
:
MockHandler
)
:
void
Parameters
url:
string
handler:
MockHandler
Returns
void
patch
patch
(
url
:
string
, handler
:
MockHandler
)
:
void
Parameters
url:
string
handler:
MockHandler
Returns
void
post
post
(
url
:
string
, handler
:
MockHandler
)
:
void
Parameters
url:
string
handler:
MockHandler
Returns
void
put
put
(
url
:
string
, handler
:
MockHandler
)
:
void
Parameters
url:
string
handler:
MockHandler
Returns
void
reset
reset
(
)
:
void
Returns
void
restore
restore
(
)
:
void
Returns
void
Static
configure
configure
(
configuration
?:
Partial
<
Configuration
>
)
:
default
Parameters
configuration:
Partial
<
Configuration
>
= defaultConfiguration
Returns
default
Static
Private
get
Global
get
Global
(
)
:
any
Returns
any
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
yet-
another-
fetch-
mock
default
constructor
configuration
real
Fetch
routes
scope
connect
delete
fetchproxy
find
Matching
Route
get
head
mock
options
patch
post
put
reset
restore
configure
get
Global
Generated using
TypeDoc