# request-http2

> request package with added HTTP/2 requests support

Latest version **0.0.2** (published 2017-07-15) · MIT license · 0 weekly downloads

## Install

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

## 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.0.2 |
| Published | 2017-07-15 |
| First published | 2017-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4 |
| Dependencies | 23 |
| Known vulnerabilities | 0 (+7 in 5 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Bimalkant Lauhny |
| Maintainers | code-master5 |

## Links

- npm: https://www.npmjs.com/package/request-http2
- Repository: https://github.com/code-master5/request-http2
- Homepage: https://github.com/code-master5/request-http2#readme
- Issues: https://github.com/code-master5/request-http2/issues
- npm.io page: https://npm.io/package/request-http2

## Dependencies (23)

- [qs](https://npm.io/package/qs.md) ~6.4.0
- [aws4](https://npm.io/package/aws4.md) ^1.2.1
- [hawk](https://npm.io/package/hawk.md) ~3.1.3
- [uuid](https://npm.io/package/uuid.md) ^3.0.0
- [http2](https://npm.io/package/http2.md) ^3.3.6
- [extend](https://npm.io/package/extend.md) ~3.0.0
- [caseless](https://npm.io/package/caseless.md) ~0.12.0
- [isstream](https://npm.io/package/isstream.md) ~0.1.2
- [aws-sign2](https://npm.io/package/aws-sign2.md) ~0.6.0
- [form-data](https://npm.io/package/form-data.md) ~2.1.1
- [mime-types](https://npm.io/package/mime-types.md) ~2.1.7
- [oauth-sign](https://npm.io/package/oauth-sign.md) ~0.8.1
- [safe-buffer](https://npm.io/package/safe-buffer.md) ^5.0.1
- [stringstream](https://npm.io/package/stringstream.md) ~0.0.4
- [tough-cookie](https://npm.io/package/tough-cookie.md) ~2.3.0
- [tunnel-agent](https://npm.io/package/tunnel-agent.md) ^0.6.0
- [forever-agent](https://npm.io/package/forever-agent.md) ~0.6.1
- [har-validator](https://npm.io/package/har-validator.md) ~4.2.1
- [is-typedarray](https://npm.io/package/is-typedarray.md) ~1.0.0
- [http-signature](https://npm.io/package/http-signature.md) ~1.1.0
- [combined-stream](https://npm.io/package/combined-stream.md) ~1.0.5
- [performance-now](https://npm.io/package/performance-now.md) ^0.2.0
- [json-stringify-safe](https://npm.io/package/json-stringify-safe.md) ~5.0.1

## Recent versions

- 0.0.2 (latest) — 2017-07-15
- 0.0.1 — 2017-07-15

## README

# request-http2

Request module with HTTP/2 support

This project is a modified fork of [request](https://github.com/request/request) project.
Therefore see [request](https://www.npmjs.com/package/request) for details.

### HTTP/2 requests

Unlike [request](https://github.com/request/request) package, it supports HTTP/2 requests.
Just add `http: true` in the `options` object argument in request method.

For example, see `POST` request below -

```js
  var options = {
    method: 'POST',
      uri: 'https://someurl.com/path',
      http2: true,
      headers: {
        // HEADERS go here
      },
      body: {
        // DATA to be posted
      } ,
      json: true
  };

  request(options, function (error, response, body) {
    if (error) {
      return console.error('upload failed:', error);
    }
    console.log('Server responded with:', body);
  })
```

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