macOS
brew install h2speclocal Homebrew formula metadata
brew
Conformance testing tool for HTTP/2 implementation. Version 2.6.0 via Homebrew; verified from local package data.
install
brew install h2speclocal Homebrew formula metadata
nix profile install nixpkgs#h2specnixpkgs package indexes · pkgs/by-name/h2/h2spec/package.nix · source: api.github.com
overview
Conformance testing tool for HTTP/2 implementation
history
h2spec is a Go command-line conformance tester for HTTP/2 implementations. It became a standard developer tool because it translates the protocol rules in RFC 7540 and HPACK rules in RFC 7541 into runnable test cases against real servers.
The repository was created in August 2014, during the final stretch of HTTP/2 standardization. The first GitHub release, v0.0.1, was published in December 2014 as an alpha release, and rapid 0.0.x releases followed with TLS, stream-state, frame, and timeout test coverage.
Version 1.0.0 was published in May 2015, shortly after the publication of RFC 7540 and RFC 7541. Later 1.x releases added HPACK-related tests, section-specific checks, JUnit reporting, performance improvements, and more detailed error handling.
Version 2.0.0 in January 2017 refactored the test cases, added RFC 7541 HPACK tests, added HTTP/2 server tests, dry-run mode, individual test-case execution, and verbose logging. Subsequent 2.x releases tracked Go toolchain changes and fixed conformance details around GOAWAY, frame lengths, HPACK strings, path selection, and TLS cipher selection.
h2spec's adoption came from implementers needing an independent executable check for HTTP/2 behavior. The 2015 HTTP Workshop presentation by Moto Ishizawa described the goal as sharing test cases because HTTP/2 implementations are hard to test.
The tool appears in official and community workflows for server and library validation because it can be installed as a binary, run from Docker, or built from source. Homebrew and Nix packaging made it easy to use in local development and CI jobs.
h2spec targets a host and port, optionally over TLS, and can run the entire suite or a single spec section such as `http2/6.3`. Its supported spec IDs include `http2`, `hpack`, and `generic`, and it offers strict mode for SHOULD-level requirements plus JUnit output for CI reporting.
Package users typically run it against a local web server, proxy, HTTP/2 library example server, or appliance endpoint to catch protocol-state, frame-format, stream, HPACK, or error-handling mistakes.
h2spec matters because it turned an RFC-reading task into a repeatable CLI check. For package maintainers, it is a small but high-leverage tool: it can validate HTTP/2 support in servers such as H2O, HAProxy, nginx builds, language libraries, and reverse proxies without embedding a full benchmark or browser stack.
Its release history is also a useful map of HTTP/2 implementation pain points: stream states, SETTINGS, GOAWAY, HPACK, TLS, headers, padding, and CI-friendly reporting all show up as packageable conformance concerns.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
h2spec | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/summerwind/h2spec
install metadata
| Package key | brew:h2spec |
|---|---|
| Version | 2.6.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/h2spec |
| Homepage | https://github.com/summerwind/h2spec |
| Repository | https://github.com/summerwind/h2spec |
| Upstream docs | https://github.com/summerwind/h2spec#readme |
| License | MIT |
| Source archive | https://github.com/summerwind/h2spec.git |
| Build dependencies | go |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | h2spec |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
h2spec
nix profile install nixpkgs#h2specsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.