Logos DX
Preparing search index...
@logosdx/fetch
EngineLifecycle
Interface EngineLifecycle<H, P>
Lifecycle hooks for requests.
interface
EngineLifecycle
<
H
=
InstanceHeaders
,
P
=
InstanceParams
>
{
onAfterReq
?:
(
response
:
Response
,
opts
:
EngineRequestOpts
<
H
,
P
>
,
)
=>
void
|
Promise
<
void
>
;
onBeforeReq
?:
(
opts
:
EngineRequestOpts
<
H
,
P
>
)
=>
void
|
Promise
<
void
>
;
onError
?:
(
err
:
FetchError
<
any
,
any
>
)
=>
void
|
Promise
<
void
>
;
}
Type Parameters
H
=
InstanceHeaders
P
=
InstanceParams
Hierarchy (
View Summary
)
EngineLifecycle
CallConfig
EngineConfig
Index
Properties
on
After
Req?
on
Before
Req?
on
Error?
Properties
Optional
on
After
Req
onAfterReq
?:
(
response
:
Response
,
opts
:
EngineRequestOpts
<
H
,
P
>
,
)
=>
void
|
Promise
<
void
>
Optional
on
Before
Req
onBeforeReq
?:
(
opts
:
EngineRequestOpts
<
H
,
P
>
)
=>
void
|
Promise
<
void
>
Optional
on
Error
onError
?:
(
err
:
FetchError
<
any
,
any
>
)
=>
void
|
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
on
After
Req
on
Before
Req
on
Error
Logos DX
Loading...
Lifecycle hooks for requests.