mirror of https://github.com/sundowndev/http.git
664e0742b3 | ||
---|---|---|
.. | ||
.vuepress | ||
.gitignore | ||
advanced.md | ||
migration.md | ||
options.md | ||
package.json | ||
readme.md | ||
setup.md | ||
usage.md | ||
yarn.lock |
readme.md
Introduction
HTTP module for Nuxt.js provides a universal way to make HTTP requests to the API backend.
This module is a successor of Axios Module and behind the scenes use ky-universal and Fetch API to make HTTP requests. Please see migration guide if currently using axios module.
Starting with v2.5.0, Nuxt.js has built-in support for universal fetch. Using this module has serveral advantages and is mondatory in most of real-world use cases.
- Fluent ky API with more enhancenments and shortcuts
- Highly customizable options support for BaseURL
- Automatically proxy cookies and headers when making requests from server side
- Best practices to avoid token sharing while making server side requests
- Easy proxy support to avoid CORS problems and making deployment easier