{"id":28392980,"url":"https://github.com/http4s/hpack","last_synced_at":"2026-03-04T12:03:35.657Z","repository":{"id":37150037,"uuid":"450556865","full_name":"http4s/hpack","owner":"http4s","description":"Header Compression for HTTP/2","archived":false,"fork":false,"pushed_at":"2025-07-05T20:23:19.000Z","size":351,"stargazers_count":2,"open_issues_count":17,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-24T10:25:47.934Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://twitter.com/http_2","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"twitter/hpack","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/http4s.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-21T16:11:05.000Z","updated_at":"2025-06-06T21:40:47.000Z","dependencies_parsed_at":"2024-05-02T02:33:40.939Z","dependency_job_id":"c04a8bc9-23d4-4a50-a120-f4a8761f33b6","html_url":"https://github.com/http4s/hpack","commit_stats":{"total_commits":202,"total_committers":13,"mean_commits":"15.538461538461538","dds":0.6633663366336633,"last_synced_commit":"7b7291a8080967ebcc198c1d649c56e2c6b7a0a5"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/http4s/hpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http4s%2Fhpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http4s%2Fhpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http4s%2Fhpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http4s%2Fhpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/http4s","download_url":"https://codeload.github.com/http4s/hpack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http4s%2Fhpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30079565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T11:57:42.557Z","status":"ssl_error","status_checked_at":"2026-03-04T11:56:10.793Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2025-05-31T15:10:21.423Z","updated_at":"2026-03-04T12:03:30.638Z","avatar_url":"https://github.com/http4s.png","language":"Scala","readme":"This is an internal fork of [Twitter HPACK](https://github.com/twitter/hpack) for http4s that has been ported to pure Scala and cross-built for Scala.js and Scala Native.\n\nHPACK [![Build Status](https://travis-ci.org/twitter/hpack.png?branch=master)](https://travis-ci.org/twitter/hpack) [![Coverage Status](https://coveralls.io/repos/twitter/hpack/badge.png?branch=master)](https://coveralls.io/r/twitter/hpack?branch=master)\n=====\n\n[Header Compression for HTTP/2](http://tools.ietf.org/html/rfc7541)\n\n## Download\n\nHPACK can be downloaded from the Maven central repository. Add the following dependency section to your pom.xml file:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.twitter\u003c/groupId\u003e\n    \u003cartifactId\u003ehpack\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Getting Started\n\nThis library provides support for compression of header lists into header blocks. The following code fragment demonstrates the use of Encoder and Decoder:\n\n    try {\n      int maxHeaderSize = 4096;\n      int maxHeaderTableSize = 4096;\n      byte[] name = \"name\".getBytes();\n      byte[] value = \"value\".getBytes();\n      boolean sensitive = false;\n\n      ByteArrayOutputStream out = new ByteArrayOutputStream();\n\n      // encode header list into header block\n      Encoder encoder = new Encoder(maxHeaderTableSize);\n      encoder.encodeHeader(out, name, value, sensitive);\n\n      ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());\n\n      HeaderListener listener = new HeaderListener() {\n        @Override\n        public void addHeader(byte[] name, byte[] value, boolean sensitive) {\n          // handle header field\n        }\n      };\n\n      // decode header list from header block\n      Decoder decoder = new Decoder(maxHeaderSize, maxHeaderTableSize);\n      decoder.decode(in, listener);\n      decoder.endHeaderBlock();\n    } catch (IOException e) {\n      // handle exception\n    }\n\n## Problems?\nIf you find any issues please [report them](https://github.com/twitter/hpack/issues) or better,\nsend a [pull request](https://github.com/twitter/hpack/pulls).\n\n## Authors\n* Jeff Pinner \u003chttps://twitter.com/jpinner\u003e\n* Bill Gallagher \u003chttps://twitter.com/billjgallagher\u003e\n\n## License\nCopyright 2013 Twitter, Inc.\n\nLicensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp4s%2Fhpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttp4s%2Fhpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp4s%2Fhpack/lists"}