
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
Http2 Request is designed to be the simplest way possible to make http & http2 calls. It supports HTTP2 and follows redirects by default.
To be http2 compatible it uses http2-client. To make requests it uses request - expect the API to be identical just with http2 support.
The API is identical to that of request as this module just changes the http modules of request - you will actually be using request. The only addition to the API is to disable this module behavior on request basis
const request = require('h2-request');
request({
uri : 'http://www.google.com',
disableHttp2 : true // <-- Now it's a regular request without http2
}, function (error, response, body) {
console.log('error:', error); // Print the error if one occurred
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
console.log('body:', body); // Print the HTML for the Google homepage.
});
To see the full API documentation: request Documentation
FAQs
Simplified HTTP2 / HTTP1 request client.
The npm package h2-request receives a total of 2 weekly downloads. As such, h2-request popularity was classified as not popular.
We found that h2-request demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.