Function | Description |
---|---|
mande(baseURL, passedInstanceOptions, fetchPolyfill) | Create a Mande instance |
nuxtWrap(api, fn) | Creates an Nuxt 2 SSR compatible function that automatically proxies cookies to requests and works transparently on the server and client (it still requires a fetch polyfill on Node). Note this is only needed if you need to proxy cookies to the server. |
Interface | Description |
---|---|
MandeError | Extended Error with the raw Response object. |
MandeInstance | Object returned by mande() |
Options | Allowed options for a request. Extends native RequestInit . |
OptionsRaw |
Variable | Description |
---|---|
defaults | Global default options as Options that are applied to **all** mande instances. Always contain an initialized headers property with the default headers: - Accept: ‘application/json’ - ‘Content-Type’: ‘application/json’ |
Type Alias | Description |
---|---|
MandeResponse | |
ResponseAsTypes |