Interface: RequestConfig ​
Defined in: packages/minerender/src/request/Requests.ts:7
Fetch settings passed to Requests.genericRequest or Requests.mcAssetRequest.
Extends ​
RequestInit
Properties ​
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
baseURL? | string | Prepended to relative URLs, preserving any path in the base URL. | - | packages/minerender/src/request/Requests.ts:10 |
body? | BodyInit | null | A BodyInit object or null to set request's body. | RequestInit.body | node_modules/typescript/lib/lib.dom.d.ts:1694 |
cache? | RequestCache | A string indicating how the request will interact with the browser's cache to set request's cache. | RequestInit.cache | node_modules/typescript/lib/lib.dom.d.ts:1696 |
credentials? | RequestCredentials | A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. | RequestInit.credentials | node_modules/typescript/lib/lib.dom.d.ts:1698 |
headers? | HeadersInit | A Headers object, an object literal, or an array of two-item arrays to set request's headers. | RequestInit.headers | node_modules/typescript/lib/lib.dom.d.ts:1700 |
integrity? | string | A cryptographic hash of the resource to be fetched by request. Sets request's integrity. | RequestInit.integrity | node_modules/typescript/lib/lib.dom.d.ts:1702 |
keepalive? | boolean | A boolean to set request's keepalive. | RequestInit.keepalive | node_modules/typescript/lib/lib.dom.d.ts:1704 |
method? | string | A string to set request's method. | RequestInit.method | node_modules/typescript/lib/lib.dom.d.ts:1706 |
mode? | RequestMode | A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. | RequestInit.mode | node_modules/typescript/lib/lib.dom.d.ts:1708 |
priority? | RequestPriority | - | RequestInit.priority | node_modules/typescript/lib/lib.dom.d.ts:1709 |
redirect? | RequestRedirect | A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. | RequestInit.redirect | node_modules/typescript/lib/lib.dom.d.ts:1711 |
referrer? | string | A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. | RequestInit.referrer | node_modules/typescript/lib/lib.dom.d.ts:1713 |
referrerPolicy? | ReferrerPolicy | A referrer policy to set request's referrerPolicy. | RequestInit.referrerPolicy | node_modules/typescript/lib/lib.dom.d.ts:1715 |
responseType? | "json" | "arraybuffer" | Response-body decoding. Defaults to json. | - | packages/minerender/src/request/Requests.ts:14 |
signal? | AbortSignal | null | An AbortSignal to set request's signal. | RequestInit.signal | node_modules/typescript/lib/lib.dom.d.ts:1717 |
timeout? | number | Timeout per attempt in milliseconds, including body reading. Defaults to 5000; 0 disables it. | - | packages/minerender/src/request/Requests.ts:12 |
url | string | - | - | packages/minerender/src/request/Requests.ts:8 |
window? | null | Can only be null. Used to disassociate request from any Window. | RequestInit.window | node_modules/typescript/lib/lib.dom.d.ts:1719 |