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
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| ... | any | Any properties from ExecuteInitOptions | |
| ... | any | Any properties from UrlResolveOptions | |
lastState
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| * | decodedBody | any | |
| * | response | Response | |
| * | result | T | |
| * | url | string | |
requestInit
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| * | headers | Headers | |
| * | method | string | |
| ... | any | Any properties from RequestInit | |