MiddlewareContext
Sourceimport { MiddlewareContext } from "@prestojs/rest";
MiddlewareContext<T>
Constructor
Params:
Parameter | Type | Description | |
---|---|---|---|
* | options |
Methods
Params:
Parameter | Type | Description | |
---|---|---|---|
* | response | Response | |
* | decodedBody | Promise |
Returns:void
Properties
executeOptions
SourceAn object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
... | any | Any properties from ExecuteInitOptions | |
... | any | Any properties from UrlResolveOptions |
lastState
SourceAn object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
* | decodedBody | any | |
* | response | Response | |
* | result | T | |
* | url | string |
requestInit
SourceAn object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
* | headers | Headers | |
* | method | string | |
... | any | Any properties from RequestInit |