http/docs
pooya parsa 664e0742b3 update docs 2019-04-09 14:00:31 +04:30
..
.vuepress update docs 2019-04-09 14:00:31 +04:30
.gitignore migrate to vue-press 2019-03-24 15:10:04 +04:30
advanced.md update docs 2019-04-09 14:00:31 +04:30
migration.md update docs 2019-04-09 14:00:31 +04:30
options.md global retry 2019-03-24 15:42:58 +04:30
package.json migrate to vue-press 2019-03-24 15:10:04 +04:30
readme.md update docs 2019-04-09 14:00:31 +04:30
setup.md migrate to vue-press 2019-03-24 15:10:04 +04:30
usage.md update docs 2019-04-09 14:00:31 +04:30
yarn.lock migrate to vue-press 2019-03-24 15:10:04 +04:30

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