MiddlewareContext
Sourceimport { MiddlewareContext } from "@prestojs/rest";
MiddlewareContext<T>
Constructor
Methods
Properties
executeOptions
SourceAn 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
SourceAn object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
* | decodedBody | any | |
* | response | Response | |
* | result | ReturnT | |
* | url | string |
requestInit
SourceAn 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 |