{"id":44562215,"url":"https://github.com/dgrr/http2","last_synced_at":"2026-02-13T23:43:21.741Z","repository":{"id":34857151,"uuid":"144403787","full_name":"dgrr/http2","owner":"dgrr","description":"HTTP/2 implementation for fasthttp","archived":false,"fork":false,"pushed_at":"2025-07-03T13:01:41.000Z","size":12093,"stargazers_count":231,"open_issues_count":16,"forks_count":43,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-11-23T02:21:27.286Z","etag":null,"topics":["fasthttp","golang","http2"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgrr.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":"SECURITY.md","support":null,"governance":null}},"created_at":"2018-08-11T17:07:09.000Z","updated_at":"2025-11-12T23:11:19.000Z","dependencies_parsed_at":"2022-08-08T02:01:23.249Z","dependency_job_id":"735aee22-3c7a-4943-b700-e398d9b44ca3","html_url":"https://github.com/dgrr/http2","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/dgrr/http2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrr%2Fhttp2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrr%2Fhttp2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrr%2Fhttp2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrr%2Fhttp2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgrr","download_url":"https://codeload.github.com/dgrr/http2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrr%2Fhttp2/sbom","scorecard":{"id":339717,"data":{"date":"2025-08-11","repo":{"name":"github.com/dgrr/http2","commit":"d3758a581904d549662d9b42126bccca16a10bea"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Maintained","score":2,"reason":"2 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Code-Review","score":0,"reason":"Found 2/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/dgrr/http2/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/dgrr/http2/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/dgrr/http2/main.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/main.yml:45","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T05:30:14.190Z","repository_id":34857151,"created_at":"2025-08-18T05:30:14.190Z","updated_at":"2025-08-18T05:30:14.190Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29423542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T22:20:51.549Z","status":"ssl_error","status_checked_at":"2026-02-13T22:20:49.838Z","response_time":78,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fasthttp","golang","http2"],"created_at":"2026-02-13T23:43:18.384Z","updated_at":"2026-02-13T23:43:21.726Z","avatar_url":"https://github.com/dgrr.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# HTTP2\n\nhttp2 is an implementation of HTTP/2 protocol for [fasthttp](https://github.com/valyala/fasthttp).\n\n## Download\n\n```bash\ngo get github.com/dgrr/http2@v0.3.5\n```\n\n## Help\n\nIf you need any help to set up, contributing or understanding this repo, you can contact me on [gofiber's Discord](https://gofiber.io/discord).\n\n## How to use the server?\n\nThe server can only be used if your server supports TLS.\nThen, you can call [ConfigureServer](https://pkg.go.dev/github.com/dgrr/http2#ConfigureServer).\n\n```go\npackage main\n\nimport (\n\t\"github.com/valyala/fasthttp\"\n\t\"github.com/dgrr/http2\"\n)\n\nfunc main() {\n    s := \u0026fasthttp.Server{\n        Handler: yourHandler,\n        Name:    \"HTTP2 test\",\n    }\n\n    http2.ConfigureServer(s, http2.ServerConfig{})\n    \n    s.ListenAndServeTLS(...)\n}\n```\n\n## How to use the client?\n\nThe HTTP/2 client only works with the HostClient.\n\n```go\npackage main\n\nimport (\n        \"fmt\"\n        \"log\"\n\n        \"github.com/dgrr/http2\"\n        \"github.com/valyala/fasthttp\"\n)\n\nfunc main() {\n        hc := \u0026fasthttp.HostClient{\n                Addr:  \"api.binance.com:443\",\n        }\n\n        if err := http2.ConfigureClient(hc, http2.ClientOpts{}); err != nil {\n                log.Printf(\"%s doesn't support http/2\\n\", hc.Addr)\n        }\n\n        statusCode, body, err := hc.Get(nil, \"https://api.binance.com/api/v3/time\")\n        if err != nil {\n                log.Fatalln(err)\n        }\n\n        fmt.Printf(\"%d: %s\\n\", statusCode, body)\n}\n```\n\n## Benchmarks\n\nBenchmark code [here](https://github.com/dgrr/http2/tree/master/benchmark).\n\n### fasthttp2\n```\n$  h2load --duration=10 -c10 -m1000 -t 4 https://localhost:8443\n[...]\nfinished in 10.01s, 533808.90 req/s, 33.09MB/s\nrequests: 5338089 total, 5348089 started, 5338089 done, 5338089 succeeded, 0 failed, 0 errored, 0 timeout\nstatus codes: 5338089 2xx, 0 3xx, 0 4xx, 0 5xx\ntraffic: 330.90MB (346976335) total, 137.45MB (144128403) headers (space savings 57.14%), 101.82MB (106761780) data\n                     min         max         mean         sd        +/- sd\ntime for request:     1.06ms    101.25ms     17.16ms     11.06ms    75.19%\ntime for connect:     5.21ms     17.36ms     12.60ms      3.56ms    70.00%\ntime to 1st byte:    11.32ms     35.27ms     18.84ms      6.85ms    80.00%\nreq/s           :   48976.50    59084.92    53359.02     3657.52    60.00%\n```\n\n### net/http2\n```\n$  h2load --duration=10 -c10 -m1000 -t 4 https://localhost:8443\n[...]\nfinished in 10.01s, 124812.90 req/s, 5.00MB/s\nrequests: 1248129 total, 1258129 started, 1248129 done, 1248129 succeeded, 0 failed, 0 errored, 0 timeout\nstatus codes: 1248247 2xx, 0 3xx, 0 4xx, 0 5xx\ntraffic: 50.00MB (52426258) total, 4.76MB (4995738) headers (space savings 95.83%), 23.81MB (24962580) data\n                     min         max         mean         sd        +/- sd\ntime for request:      141us    140.75ms     19.69ms     11.34ms    76.79%\ntime for connect:     3.89ms     13.30ms      9.71ms      2.78ms    70.00%\ntime to 1st byte:    11.02ms     50.13ms     20.13ms     11.24ms    90.00%\nreq/s           :   11909.97    13162.89    12479.53      373.71    70.00%\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrr%2Fhttp2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgrr%2Fhttp2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrr%2Fhttp2/lists"}