{"id":13757541,"url":"https://github.com/summerwind/h2spec","last_synced_at":"2025-05-16T06:02:52.078Z","repository":{"id":20182423,"uuid":"23453434","full_name":"summerwind/h2spec","owner":"summerwind","description":"A conformance testing tool for HTTP/2 implementation.","archived":false,"fork":false,"pushed_at":"2023-10-15T14:13:57.000Z","size":446,"stargazers_count":683,"open_issues_count":32,"forks_count":78,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-12T11:53:55.245Z","etag":null,"topics":["go","hpack","http2"],"latest_commit_sha":null,"homepage":"","language":"Go","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/summerwind.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}},"created_at":"2014-08-29T05:18:05.000Z","updated_at":"2025-04-27T00:12:57.000Z","dependencies_parsed_at":"2024-01-15T03:42:29.754Z","dependency_job_id":null,"html_url":"https://github.com/summerwind/h2spec","commit_stats":{"total_commits":333,"total_committers":24,"mean_commits":13.875,"dds":"0.19819819819819817","last_synced_commit":"af83a65f0b6273ef38bf778d400d98892e7653d8"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fh2spec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fh2spec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fh2spec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fh2spec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/summerwind","download_url":"https://codeload.github.com/summerwind/h2spec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254478160,"owners_count":22077675,"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":["go","hpack","http2"],"created_at":"2024-08-03T12:00:40.650Z","updated_at":"2025-05-16T06:02:52.033Z","avatar_url":"https://github.com/summerwind.png","language":"Go","funding_links":[],"categories":["Go","Categories"],"sub_categories":["Command Line Tools"],"readme":"# h2spec\n\nh2spec is a conformance testing tool for HTTP/2 implementation.  \nThis tool is compliant with [RFC 7540 (HTTP/2)](http://www.rfc-editor.org/rfc/rfc7540.txt) and [RFC 7541 (HPACK)](http://www.rfc-editor.org/rfc/rfc7541.txt).\n\n## Install\n\nGo to the [releases page](https://github.com/summerwind/h2spec/releases), find the version you want, and download the zip file or tarball file. The docker image is also available in [Docker Hub](https://hub.docker.com/r/summerwind/h2spec/).\n\n## Your server\n\nYour server should respond on `GET /` or `POST /` requests with status 200 response with non-empty data.\n\n## Usage\n\n```\nConformance testing tool for HTTP/2 implementation.\n\nUsage:\n  h2spec [spec...] [flags]\n\nFlags:\n  -c, --ciphers string          List of colon-separated TLS cipher names\n      --dryrun                  Display only the title of test cases\n      --help                    Display this help and exit\n  -h, --host string             Target host (default \"127.0.0.1\")\n  -k, --insecure                Don't verify server's certificate\n  -j, --junit-report string     Path for JUnit test report\n      --max-header-length int   Maximum length of HTTP header (default 4000)\n  -P, --path string             Target path (default \"/\")\n  -p, --port int                Target port\n  -S, --strict                  Run all test cases including strict test cases\n  -o, --timeout int             Time seconds to test timeout (default 2)\n  -t, --tls                     Connect over TLS\n  -v, --verbose                 Output verbose log\n      --version                 Display version information and exit\n```\n\n### Running a specific test case\n\nYou can choose a test case to run by specifying the *Spec ID* as the command argument. For example, if you want to run test cases for HTTP/2, run h2spec as following:\n\n```\n$ h2spec http2\n```\n\nIf you add a section number after the *Spec ID*, test cases related to a specific section will be run. For example, if you want to run test cases related to 6.3 of HTTP/2, run h2spec as following:\n\n```\n$ h2spec http2/6.3\n```\n\nIf you add a test number after the section number, you can run the specific test case individually. For example, to run only the first test case related to 6.3 of HTTP/2 6.3, run h2spec as following:\n\n```\n$ h2spec http2/6.3/1\n```\n\nThe *Spec ID* can be specified multiple times.\n\n```\n$ h2spec http2/6.3 generic\n```\n\nCurrently supported *Spec IDs* are as follows. `generic` is the original spec of h2spec, includes generic test cases for HTTP/2 servers.\n\nSpec ID | Description\n--- | ---\nhttp2 | Test cases for RFC 7540 (HTTP/2)\nhpack | Test cases for RFC 7541 (HPACK)\ngeneric | Generic test cases for HTTP/2 servers\n\n### Dryrun Mode\n\nTo display the list of test cases to be run, use *Dryrun Mode* as follows:\n\n```\n$ h2spec --dryrun\n```\n\n### Strict Mode\n\nWhen *Strict Mode* is enabled, h2spec will run the test cases related to the contents requested with the `SHOULD` notation in each specification. It is useful for more rigorous verification of HTTP/2 implementation.\n\n```\n$ h2spec --strict\n```\n\n## Screenshot\n\n![Sceenshot](https://cloud.githubusercontent.com/assets/230145/22183160/9e9fbb4c-e0fa-11e6-9383-e2cc1ed6750a.png)\n\n## Build\n\nTo build from source, you need to install [Go](https://golang.org) and export `GO111MODULE=on` first.\n\nTo build:\n```\n$ make build\n```\n\nTo test:\n```\n$ make test\n```\n\n## License\n\nh2spec is made available under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummerwind%2Fh2spec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsummerwind%2Fh2spec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummerwind%2Fh2spec/lists"}