{"id":38414440,"url":"https://github.com/fasthttp/http2","last_synced_at":"2026-01-17T04:06:22.281Z","repository":{"id":46176917,"uuid":"146074146","full_name":"fasthttp/http2","owner":"fasthttp","description":"HTTP/2 implementation for fasthttp (Under construction...)","archived":false,"fork":false,"pushed_at":"2022-01-13T20:51:08.000Z","size":10742,"stargazers_count":119,"open_issues_count":2,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-06-18T21:46:46.198Z","etag":null,"topics":[],"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/fasthttp.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}},"created_at":"2018-08-25T07:09:43.000Z","updated_at":"2024-05-08T04:02:41.000Z","dependencies_parsed_at":"2022-09-07T17:02:35.808Z","dependency_job_id":null,"html_url":"https://github.com/fasthttp/http2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fasthttp/http2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasthttp%2Fhttp2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasthttp%2Fhttp2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasthttp%2Fhttp2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasthttp%2Fhttp2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fasthttp","download_url":"https://codeload.github.com/fasthttp/http2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasthttp%2Fhttp2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28494278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-17T04:06:22.181Z","updated_at":"2026-01-17T04:06:22.263Z","avatar_url":"https://github.com/fasthttp.png","language":"Go","funding_links":[],"categories":[],"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.2.12\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasthttp%2Fhttp2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffasthttp%2Fhttp2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasthttp%2Fhttp2/lists"}