Interface: Middleware
Types.Middleware
Methods
onError
▸ Optional
onError(context
): Promise
<void
| Response
>
Parameters
Name | Type |
---|---|
context | ErrorContext |
Returns
Promise
<void
| Response
>
post
▸ Optional
post(context
): Promise
<void
| Response
>
Parameters
Name | Type |
---|---|
context | ResponseContext |
Returns
Promise
<void
| Response
>
pre
▸ Optional
pre(context
): Promise
<void
| FetchParams
>
Parameters
Name | Type |
---|---|
context | RequestContext |
Returns
Promise
<void
| FetchParams
>