{"id":20759708,"url":"https://github.com/kelbon/hpack","last_synced_at":"2026-05-27T18:32:37.305Z","repository":{"id":258371352,"uuid":"873807741","full_name":"kelbon/HPACK","owner":"kelbon","description":"HPACK implementation (RFC 7541)","archived":false,"fork":false,"pushed_at":"2025-03-07T13:00:57.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T14:19:40.131Z","etag":null,"topics":["cpp","cpp20","hpack","http","http2","networking","rfc7541"],"latest_commit_sha":null,"homepage":"","language":"C++","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/kelbon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["kelbon"]}},"created_at":"2024-10-16T18:50:21.000Z","updated_at":"2025-03-07T13:00:11.000Z","dependencies_parsed_at":"2025-01-14T10:23:06.133Z","dependency_job_id":"bf2eaed5-7c32-480a-97ca-7b6b7d44ee39","html_url":"https://github.com/kelbon/HPACK","commit_stats":null,"previous_names":["kelbon/hpack"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelbon%2FHPACK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelbon%2FHPACK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelbon%2FHPACK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelbon%2FHPACK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kelbon","download_url":"https://codeload.github.com/kelbon/HPACK/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243076638,"owners_count":20232435,"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","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":["cpp","cpp20","hpack","http","http2","networking","rfc7541"],"created_at":"2024-11-17T10:07:37.136Z","updated_at":"2026-05-27T18:32:37.263Z","avatar_url":"https://github.com/kelbon.png","language":"C++","funding_links":["https://github.com/sponsors/kelbon"],"categories":[],"sub_categories":[],"readme":"\nComplete implementation of HPACK (Header Compression for HTTP/2, fully compliant RFC 7541)\n\nencode:\n\n```cpp\n#include \u003chpack/hpack.hpp\u003e\n\nvoid encode_my_headers(hpack::encoder\u0026 enc, std::vector\u003chpack::bytes\u003e\u0026 bytes) {\n  // memory effective by default\n  enc.encode(\"name\", \"value\", std::back_inserter(bytes));\n  // or by hands\n  enc.encode_header_fully_indexed(hpack::static_table_t::status_200, std::back_inserter(bytes));\n}\n\n```\n\ndecode\n\n```cpp\n#include \u003chpack/hpack.hpp\u003e\n\nvoid decode_my_headers(hpack::decoder\u0026 d, std::span\u003cconst hpack::byte_t\u003e bytes) {\n  hpack::decode_headers_block(e, bytes, [\u0026](std::string_view name, std::string_view value) {\n    // use name/value somehow\n  });\n}\n\n```\n\nadding with cmake:\n\nPreferred way with [CPM](https://github.com/cpm-cmake/CPM.cmake)\n\n```cmake\n\nCPMAddPackage(\n  NAME HPACK\n  GIT_REPOSITORY https://github.com/kelbon/HPACK\n  GIT_TAG        v1.0.0\n  OPTIONS \"HPACK_ENABLE_TESTING ON\"\n)\n\ntarget_link_libraries(MyTargetName hpacklib)\n\n```\n\nsimple way with fetch content:\n\n```cmake\n\ninclude(FetchContent)\nFetchContent_Declare(\n  HPACK\n  GIT_REPOSITORY https://github.com/kelbon/HPACK\n  GIT_TAG        origin/master\n)\nFetchContent_MakeAvailable(HPACK)\ntarget_link_libraries(MyTargetName hpacklib)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelbon%2Fhpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkelbon%2Fhpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelbon%2Fhpack/lists"}