Skip to content

Interface: RequestConfig ​

Defined in: packages/minerender/src/request/Requests.ts:6

Extends ​

  • RequestInit

Properties ​

PropertyTypeDescriptionInherited fromDefined in
baseURL?stringPrepended to relative URLs, preserving any path in the base URL.-packages/minerender/src/request/Requests.ts:9
body?BodyInit | nullA BodyInit object or null to set request's body.RequestInit.bodynode_modules/typescript/lib/lib.dom.d.ts:1694
cache?RequestCacheA string indicating how the request will interact with the browser's cache to set request's cache.RequestInit.cachenode_modules/typescript/lib/lib.dom.d.ts:1696
credentials?RequestCredentialsA 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.credentialsnode_modules/typescript/lib/lib.dom.d.ts:1698
headers?HeadersInitA Headers object, an object literal, or an array of two-item arrays to set request's headers.RequestInit.headersnode_modules/typescript/lib/lib.dom.d.ts:1700
integrity?stringA cryptographic hash of the resource to be fetched by request. Sets request's integrity.RequestInit.integritynode_modules/typescript/lib/lib.dom.d.ts:1702
keepalive?booleanA boolean to set request's keepalive.RequestInit.keepalivenode_modules/typescript/lib/lib.dom.d.ts:1704
method?stringA string to set request's method.RequestInit.methodnode_modules/typescript/lib/lib.dom.d.ts:1706
mode?RequestModeA string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.RequestInit.modenode_modules/typescript/lib/lib.dom.d.ts:1708
priority?RequestPriority-RequestInit.prioritynode_modules/typescript/lib/lib.dom.d.ts:1709
redirect?RequestRedirectA 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.redirectnode_modules/typescript/lib/lib.dom.d.ts:1711
referrer?stringA string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.RequestInit.referrernode_modules/typescript/lib/lib.dom.d.ts:1713
referrerPolicy?ReferrerPolicyA referrer policy to set request's referrerPolicy.RequestInit.referrerPolicynode_modules/typescript/lib/lib.dom.d.ts:1715
responseType?"json" | "arraybuffer"--packages/minerender/src/request/Requests.ts:12
signal?AbortSignal | nullAn AbortSignal to set request's signal.RequestInit.signalnode_modules/typescript/lib/lib.dom.d.ts:1717
timeout?numberTimeout per attempt in milliseconds, including body reading. Defaults to 5000; 0 disables it.-packages/minerender/src/request/Requests.ts:11
urlstring--packages/minerender/src/request/Requests.ts:7
window?nullCan only be null. Used to disassociate request from any Window.RequestInit.windownode_modules/typescript/lib/lib.dom.d.ts:1719