@ahqstore/plugin-api / FetchOptions
Interface: FetchOptions
Defined in: index.ts:141
Properties
body?
optionalbody:ArrayBuffer
Defined in: index.ts:157
WARNING 🚨
- We recommend a body smaller than
20MB - Our wrapper will exclipitly deny a body longer than
50MB
Both of them are a recommendation can is not enforced from the ahq store side
Why?
The usecase of plugins should be thought of. They are to provide search and manifests. Which means from the request side you'll need to send minimal data.
If the server sends too much data, we'll 100% get it back to you.
cache?
optionalcache:"default"|"no-store"|"reload"|"no-cache"|"force-cache"
Defined in: index.ts:158
headers?
optionalheaders:Record<string,string>
Defined in: index.ts:159
method
method:
"GET"|"HEAD"|"OPTIONS"|"TRACE"|"PUT"|"DELETE"|"POST"|"PATCH"|"CONNECT"
Defined in: index.ts:143
redirect?
optionalredirect:"follow"|"error"|"manual"
Defined in: index.ts:160
timeout?
optionaltimeout:number
Defined in: index.ts:171
The time (in milliseconds) to wait before timing out the whole request
If omitted, defaults to 5000ms If set to Infinity, waits for the whole request to respond no matter how long it takes
Must have InfiniteTimeout capability to set this to a number greater than 10_000ms
Requires
API v1 or else its NOOP and ignored
url
url:
string
Defined in: index.ts:142