MiddlewareContext
Sourceimport { MiddlewareContext } from "@prestojs/rest";
MiddlewareContext<T>
Constructor
Methods
Properties
executeOptions
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| body | null|BodyInit | ||
| cache | RequestCache | ||
| credentials | RequestCredentials | ||
| headers | HeadersInit|Record | ||
| integrity | string | ||
| keepalive | boolean | ||
| method | string | ||
| mode | RequestMode | ||
| paginator | |null | ||
| redirect | RequestRedirect | ||
| referrer | string | ||
| referrerPolicy | ReferrerPolicy | ||
| signal | null|AbortSignal | ||
| window | null | ||
| ... | any | Any properties from UrlResolveOptions | |
lastState
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| * | decodedBody | any | |
| * | response | Response | |
| * | result | ReturnT | |
| * | url | string | |
requestInit
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| body | null|BodyInit | ||
| cache | RequestCache | ||
| credentials | RequestCredentials | ||
| * | headers | Headers | |
| integrity | string | ||
| keepalive | boolean | ||
| * | method | string | |
| mode | RequestMode | ||
| redirect | RequestRedirect | ||
| referrer | string | ||
| referrerPolicy | ReferrerPolicy | ||
| signal | null|AbortSignal | ||
| window | null | ||