2020-10-09 11:52:21 +00:00
|
|
|
[![@nuxt/http](https://http.nuxtjs.org/preview.png)](https://http.nuxtjs.org)
|
|
|
|
|
|
|
|
# Nuxt HTTP
|
2018-01-28 19:10:23 +00:00
|
|
|
|
2019-02-09 14:04:47 +00:00
|
|
|
[![npm version][npm-version-src]][npm-version-href]
|
|
|
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
2020-10-09 11:52:21 +00:00
|
|
|
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
|
2019-02-09 14:04:47 +00:00
|
|
|
[![Codecov][codecov-src]][codecov-href]
|
2020-10-09 11:52:21 +00:00
|
|
|
[![License][license-src]][license-href]
|
2019-02-09 14:04:47 +00:00
|
|
|
[![Standard JS][standard-js-src]][standard-js-href]
|
2017-09-08 06:34:31 +00:00
|
|
|
|
2020-10-09 11:52:21 +00:00
|
|
|
> HTTP module for Nuxt with a universal way to make HTTP requests to the API backend.
|
|
|
|
|
|
|
|
- [✨ Release Notes](https://http.nuxtjs.org/releases)
|
|
|
|
- [📖 Documentation](https://http.nuxtjs.org)
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
- The fluent [ky](https://github.com/sindresorhus/ky) API has been extended with enhancements and shortcuts
|
|
|
|
- Highly customizable options support for [BaseURL](https://http.nuxtjs.org/options#baseurl)
|
|
|
|
- Automatically proxy cookies and headers when making requests from server side
|
|
|
|
- Best practices to avoid token sharing when making server side requests
|
|
|
|
- Easy proxy support to avoid CORS problems and making deployment easier
|
|
|
|
|
|
|
|
[📖 Read more](https://http.nuxtjs.org)
|
2018-01-28 15:47:47 +00:00
|
|
|
|
2019-02-18 07:53:16 +00:00
|
|
|
## Development
|
|
|
|
|
|
|
|
1. Clone this repository
|
2019-04-09 09:57:20 +00:00
|
|
|
2. Install dependencies using `yarn install`
|
|
|
|
3. Start development server using `yarn dev`
|
2020-12-02 12:57:47 +00:00
|
|
|
4. Then go for instance to `http://localhost:3000/mounted`
|
|
|
|
|
|
|
|
## 📖 Contribute to the documentation
|
|
|
|
|
|
|
|
1. Go into the docs folder
|
|
|
|
2. Install dependencies using `yarn install`
|
|
|
|
3. Start development server using `yarn dev`
|
2019-02-18 07:53:16 +00:00
|
|
|
|
2018-02-19 09:39:02 +00:00
|
|
|
## 📑 License
|
2017-08-13 11:53:42 +00:00
|
|
|
|
2019-02-09 14:04:47 +00:00
|
|
|
[MIT License](./LICENSE)
|
|
|
|
|
2019-03-18 17:49:29 +00:00
|
|
|
Copyright (c) Nuxt.js Team
|
2019-02-09 14:04:47 +00:00
|
|
|
|
|
|
|
<!-- Badges -->
|
2019-04-09 09:53:21 +00:00
|
|
|
[npm-version-src]: https://flat.badgen.net/npm/v/@nuxt/http
|
2019-03-18 17:49:29 +00:00
|
|
|
[npm-version-href]: https://npmjs.com/package/@nuxt/http
|
2020-09-01 12:36:55 +00:00
|
|
|
[npm-downloads-src]: https://flat.badgen.net/npm/dm/@nuxt/http
|
2019-03-18 17:49:29 +00:00
|
|
|
[npm-downloads-href]: https://npmjs.com/package/@nuxt/http
|
2020-10-09 11:52:21 +00:00
|
|
|
[github-actions-ci-src]: https://github.com/nuxt/http/workflows/ci/badge.svg
|
|
|
|
[github-actions-ci-href]: https://github.com/nuxt/http/actions?query=workflow%3Aci
|
2020-09-01 12:37:50 +00:00
|
|
|
[checks-src]: https://flat.badgen.net/github/checks/nuxt/http/master
|
2020-04-13 19:49:26 +00:00
|
|
|
[checks-href]: https://github.com/nuxt/http/actions
|
2019-04-09 09:53:21 +00:00
|
|
|
[codecov-src]: https://flat.badgen.net/codecov/c/github/nuxt/http
|
2019-04-09 09:58:41 +00:00
|
|
|
[codecov-href]: https://codecov.io/gh/nuxt/http
|
2019-02-09 14:04:47 +00:00
|
|
|
[standard-js-src]: https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square
|
|
|
|
[standard-js-href]: https://standardjs.com
|
2020-10-09 11:52:21 +00:00
|
|
|
[license-src]: https://img.shields.io/npm/l/@nuxt/http.svg
|
|
|
|
[license-href]: https://npmjs.com/package/@nuxt/http
|