http
http copied to clipboard
Universal HTTP Module for Nuxt.js
Hi, I cant use headers for my post request and there is no example for setting headers. Here is what I wanted to operate: async asyncData ({ $http }) {...
Didn't see an issue template, but will happily update this if there is one. I'm using $http in a nuxt static site. I wanted to add the onRequest hook so...
I'm used to ky, and I want to use useSWRV in some of my components, rendered on client only. Could it be possible to expose the [universal fetch method](https://github.com/sindresorhus/ky#kyinput-options) of...
I get this error on a production environment, not in development mode. When I acess to link with a nuxt link in page, error doesn't ocurrs, only ocurrs when I...
`ky.HTTPError` doesn't have `statusCode`. https://github.com/nuxt/http/blob/86bf51e69a829efec5268593de998ecbc7d43c47/types/index.d.ts#L160 The correct type of this is `ky.HTTPError & { statusCode?: number }`. Please check the code and document below. Source code: https://github.com/nuxt/http/blob/86bf51e69a829efec5268593de998ecbc7d43c47/lib/plugin.js#L100 Document: https://github.com/nuxt/http/blob/658b8822e5c24ecf5eb6207a25cf150b1f88bcc5/docs/content/en/5.advanced.md#L41
Since FormData requests work different than documented on https://github.com/sindresorhus/ky#sending-form-data this should be noted in the docs.
Hi, I'm using nuxt/http to fetch data from my API using a proxy. This for a replacement of axios due to CORS errors. Sometimes, not every time, I get this...
As an fyi, I also received a _Expected signal to be an instanceof AbortSignal_ error (triggered by node-fetch) but Im not sure yet whether thats something related to my build...
### Version [v0.5.11](https://github.com/http/releases/tag/v0.5.11) ### Reproduction link https://github.com/danielroe/nuxt-ie-http See also [browser support statement in `ky` README](https://github.com/sindresorhus/ky#browser-support) ### Steps to reproduce Although Nuxt polyfills `unfetch` in IE, `ky` uses an implementation of...
I believe we should not depend on `ky` but having a way to disable token headers on this example: https://http.nuxtjs.org/advanced/#register-hooks