# @nuxt/http

> Universal HTTP Module for Nuxt.js

Latest version **0.6.4** (published 2021-02-27) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @nuxt/http
pnpm add @nuxt/http
yarn add @nuxt/http
bun add @nuxt/http
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.6.4 |
| Published | 2021-02-27 |
| First published | 2019-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 32.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 229 |
| Author | Pooya Parsa |
| Maintainers | atinux, pi0, clarkdo |

## Links

- npm: https://www.npmjs.com/package/@nuxt/http
- Repository: https://github.com/nuxt/http
- Homepage: https://github.com/nuxt/http#readme
- Issues: https://github.com/nuxt/http/issues
- npm.io page: https://npm.io/package/@nuxt/http

## Dependencies (8)

- [ky](https://npm.io/package/ky.md) ^0.25.1
- [defu](https://npm.io/package/defu.md) ^3.2.2
- [destr](https://npm.io/package/destr.md) ^1.0.1
- [consola](https://npm.io/package/consola.md) ^2.15.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [@nuxtjs/proxy](https://npm.io/package/@nuxtjs/proxy.md) ^2.1.0
- [abort-controller](https://npm.io/package/abort-controller.md) ^3.0.0
- [web-streams-polyfill](https://npm.io/package/web-streams-polyfill.md) ^3.0.1

## Recent versions

- 0.6.4 (latest) — 2021-02-27
- 0.6.3 — 2021-02-27
- 0.6.2 — 2020-12-23
- 0.6.1 — 2020-12-02
- 0.6.0 — 2020-10-01
- 0.5.13 — 2020-09-26
- 0.5.12 — 2020-09-01
- 0.5.11 — 2020-08-20
- 0.5.10 — 2020-07-16
- 0.5.9 — 2020-07-14
- 0.5.8 — 2020-07-14
- 0.5.7 — 2020-06-29
- 0.5.6 — 2020-06-29
- 0.5.5 — 2020-06-17
- 0.5.4 — 2020-06-17
- … 20 more at https://npm.io/package/@nuxt/http/versions

## README

[![@nuxt/http](https://http.nuxtjs.org/preview.png)](https://http.nuxtjs.org)

# Nuxt HTTP

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![License][license-src]][license-href]
[![Standard JS][standard-js-src]][standard-js-href]

> HTTP module for Nuxt with a universal way to make HTTP requests to the API backend.

- [✨ &nbsp;Release Notes](https://http.nuxtjs.org/releases)
- [📖 &nbsp;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

[📖 &nbsp;Read more](https://http.nuxtjs.org)

## Development

1. Clone this repository
2. Install dependencies using `yarn install`
3. Start development server using `yarn dev`
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`

## 📑 License

[MIT License](./LICENSE)

Copyright (c) Nuxt.js Team

<!-- Badges -->
[npm-version-src]: https://flat.badgen.net/npm/v/@nuxt/http
[npm-version-href]: https://npmjs.com/package/@nuxt/http
[npm-downloads-src]: https://flat.badgen.net/npm/dm/@nuxt/http
[npm-downloads-href]: https://npmjs.com/package/@nuxt/http
[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
[checks-src]: https://flat.badgen.net/github/checks/nuxt/http/master
[checks-href]: https://github.com/nuxt/http/actions
[codecov-src]: https://flat.badgen.net/codecov/c/github/nuxt/http
[codecov-href]: https://codecov.io/gh/nuxt/http
[standard-js-src]: https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square
[standard-js-href]: https://standardjs.com
[license-src]: https://img.shields.io/npm/l/@nuxt/http.svg
[license-href]: https://npmjs.com/package/@nuxt/http

---
_Source: https://npm.io/package/@nuxt/http · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
