Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hisco/http2-got
Http2 got is a human-friendly and powerful HTTP1.1 / HTTP2 request library.
https://github.com/hisco/http2-got
http2 javascript nodejs promise request stream
Last synced: about 1 month ago
JSON representation
Http2 got is a human-friendly and powerful HTTP1.1 / HTTP2 request library.
- Host: GitHub
- URL: https://github.com/hisco/http2-got
- Owner: hisco
- License: mit
- Created: 2018-09-04T11:41:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T09:23:08.000Z (4 months ago)
- Last Synced: 2024-11-07T20:54:59.363Z (about 2 months ago)
- Topics: http2, javascript, nodejs, promise, request, stream
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/http2-got
- Size: 376 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTP2 got
[![Greenkeeper badge](https://badges.greenkeeper.io/hisco/http2-got.svg)](https://greenkeeper.io/)
> Simplified HTTP requests
[![NPM Version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]Http2 got is a human-friendly and powerful HTTP1.1 / HTTP2 request library.
To be http2 compatible it uses [http2-client](https://www.npmjs.com/package/http2-client).
To make requests it uses [got](https://www.npmjs.com/package/got) - expect the API to be identical just with http2 support.#Motivation
Got is a wonderfull module, it was just missing http2 support that was added with this module.When using the module you are actually using the `got` module not even a fork...
You can easilly achive it in the same manner without this module:
```js
const {request} = require('http2-client');
const got = require('got');const gotWithHttp2 = got.extend({
request
});
```
That's it! of course we have additional integration tests to validate this integration...# Full API Documentation
The API is identical to this of `Got`.
To see the full API documentation:
[Got Documentation](https://www.npmjs.com/package/got)## License
[MIT](LICENSE)
[npm-image]: https://img.shields.io/npm/v/http2-got.svg
[npm-url]: https://npmjs.org/package/http2-got
[travis-image]: https://img.shields.io/travis/hisco/http2-got/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/hisco/http2-got
[snyk-image]: https://snyk.io/test/github/hisco/http2-got/badge.svg?targetFile=package.json
[snyk-url]: https://snyk.io/test/github/hisco/http2-got/badge.svg?targetFile=package.json