{"id":20229301,"url":"https://github.com/hisco/http2-request","last_synced_at":"2026-04-15T20:01:59.361Z","repository":{"id":57259963,"uuid":"147152650","full_name":"hisco/http2-request","owner":"hisco","description":"Simplest way possible to make http \u0026 http2 calls","archived":false,"fork":false,"pushed_at":"2020-05-23T12:13:39.000Z","size":138,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-08T12:03:31.874Z","etag":null,"topics":["http","http2","http2-client","javascript","request"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/h2-request","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hisco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-03T04:44:35.000Z","updated_at":"2020-06-09T19:22:52.000Z","dependencies_parsed_at":"2022-08-25T01:51:46.075Z","dependency_job_id":null,"html_url":"https://github.com/hisco/http2-request","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hisco/http2-request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisco%2Fhttp2-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisco%2Fhttp2-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisco%2Fhttp2-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisco%2Fhttp2-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hisco","download_url":"https://codeload.github.com/hisco/http2-request/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisco%2Fhttp2-request/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267054707,"owners_count":24028353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","http2","http2-client","javascript","request"],"created_at":"2024-11-14T07:35:11.817Z","updated_at":"2026-04-15T20:01:54.314Z","avatar_url":"https://github.com/hisco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP2 request\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/hisco/http2-request.svg)](https://greenkeeper.io/)\n\n[![NPM Version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n\nHttp2 Request is designed to be the simplest way possible to make http \u0026 http2 calls. It supports HTTP2 and follows redirects by default.\n\nTo be http2 compatible it uses [http2-client](https://www.npmjs.com/package/http2-client).\nTo make requests it uses [request](https://www.npmjs.com/package/request) - expect the API to be identical just with http2 support.\n\n# API\nThe API is identical to that of request as this module just changes the http modules of request - you will actually be using request.\nThe only addition to the API is to disable this module behavior on request basis\n\n```js\nconst request = require('h2-request');\nrequest({\n  uri : 'http://www.google.com',\n  disableHttp2 : true // \u003c-- Now it's a regular request without http2\n}, function (error, response, body) {\n  console.log('error:', error); // Print the error if one occurred\n  console.log('statusCode:', response \u0026\u0026 response.statusCode); // Print the response status code if a response was received\n  console.log('body:', body); // Print the HTML for the Google homepage.\n});\n```\n\n# Full API Documentation\nTo see the full API documentation:\n[request Documentation](https://www.npmjs.com/package/request)\n\n## License\n\n  [MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/h2-request.svg\n[npm-url]: https://npmjs.org/package/h2-request\n[travis-image]: https://img.shields.io/travis/hisco/http2-request/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/hisco/http2-request\n[snyk-image]: https://snyk.io/test/github/hisco/http2-request/badge.svg?targetFile=package.json\n[snyk-url]: https://snyk.io/test/github/hisco/http2-request/badge.svg?targetFile=package.json","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhisco%2Fhttp2-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhisco%2Fhttp2-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhisco%2Fhttp2-request/lists"}