# http-request

> General purpose HTTP / HTTPS client for node.js. Supports transparent gzip / deflate decoding.

Latest version **0.7.0** (published 2014-10-16) · 0 weekly downloads

## Install

```sh
npm install http-request
pnpm add http-request
yarn add http-request
bun add http-request
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2014-10-16 |
| First published | 2013-11-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.5 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 80 |
| Author | Stefan Rusu |
| Maintainers | saltwaterc |
| Keywords | http, https, get, head, post, put, delete, download, upload, gzip, deflate, mime |

## Links

- npm: https://www.npmjs.com/package/http-request
- Repository: https://github.com/SaltwaterC/http-get
- Issues: https://github.com/SaltwaterC/http-get/issues
- npm.io page: https://npm.io/package/http-request

## Dependencies (2)

- [mmmagic](https://npm.io/package/mmmagic.md) >= 0.3.4
- [form-data](https://npm.io/package/form-data.md) >= 0.1.2

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.7.0 (latest) — 2014-10-16
- 0.6.3 — 2014-06-11
- 0.6.2 — 2014-02-12
- 0.6.1 — 2013-12-05
- 0.6.0 — 2013-11-06

## README

# http-request [![build status](https://secure.travis-ci.org/SaltwaterC/http-request.png?branch=master)](https://travis-ci.org/SaltwaterC/http-request)�[![NPM version](https://badge.fury.io/js/http-request.png)](http://badge.fury.io/js/http-request)

General purpose HTTP / HTTPS client for node.js. Supports transparent gzip / deflate decoding. Successor of http-get.

## Installation

> npm install http-request

## Reference

 * The [Request](http://saltwaterc.github.io/http-request/module-request-Request.html) class - for implementing your own HTTP methods if wrappers aren't provided by the library
 * The [DELETE method](http://saltwaterc.github.io/http-request/module-main.html#delete)
 * The [GET method](http://saltwaterc.github.io/http-request/module-main.html#get)
 * The [HEAD method](http://saltwaterc.github.io/http-request/module-main.html#head)
 * The [POST method](http://saltwaterc.github.io/http-request/module-main.html#post)
 * The [PUT method](http://saltwaterc.github.io/http-request/module-main.html#put)
 * The [MIME sniffer](http://saltwaterc.github.io/http-request/module-main.html#mimeSniff)

## System Requirements

 * [node.js](http://nodejs.org/) v0.8.5+. Previous versions do not have proper SSL support.
 * [form-data](https://github.com/felixge/node-form-data)
 * [mmmagic](https://github.com/mscdex/mmmagic)

## Contributors

 * [cmtt](https://github.com/cmtt) - options.timeout, fixed the broken handling of buffered response when retrying the request with options.nocompress
 * [elarcent](https://github.com/elarcent) - HTTP Basic auth fix
 * [Gil Pedersen](https://github.com/kanongil) - Fixed the stream handling
 * [Stefan Klug](https://github.com/stefanklug) - Added support for custom Agent

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