{"id":18356244,"url":"https://github.com/erengy/hypp","last_synced_at":"2026-02-07T05:33:02.352Z","repository":{"id":153401993,"uuid":"153004202","full_name":"erengy/hypp","owner":"erengy","description":"HTTP/1.1 418 I'm a teapot","archived":false,"fork":false,"pushed_at":"2023-09-21T12:37:36.000Z","size":76,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T23:48:40.115Z","etag":null,"topics":["cpp17","header-only","http","work-in-progress"],"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/erengy.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},"funding":{"github":"erengy","patreon":"erengy"}},"created_at":"2018-10-14T18:13:45.000Z","updated_at":"2024-06-07T23:58:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1a96693-0413-4ae9-89c7-ff301c28c6f3","html_url":"https://github.com/erengy/hypp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erengy/hypp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erengy%2Fhypp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erengy%2Fhypp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erengy%2Fhypp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erengy%2Fhypp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erengy","download_url":"https://codeload.github.com/erengy/hypp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erengy%2Fhypp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29187221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"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":["cpp17","header-only","http","work-in-progress"],"created_at":"2024-11-05T22:09:22.505Z","updated_at":"2026-02-07T05:33:02.336Z","avatar_url":"https://github.com/erengy.png","language":"C++","funding_links":["https://github.com/sponsors/erengy","https://patreon.com/erengy"],"categories":[],"sub_categories":[],"readme":"# hypp\n\nhypp is a client-oriented HTTP library for C++. It can parse and generate HTTP/1.1 messages and URIs.\n\nTo send or receive HTTP messages, you must use hypp along with another library such as [hypr](https://github.com/erengy/hypr).\n\n## Conformance\n\nhypp aims to conform to the syntax and semantics of HTTP/1.1 elements according to the following specification documents:\n\n- [RFC 3986](https://tools.ietf.org/html/rfc3986) - Uniform Resource Identifier (URI): Generic Syntax\n- [RFC 5234](https://tools.ietf.org/html/rfc5234) - Augmented BNF for Syntax Specifications: ABNF\n- [RFC 7230](https://tools.ietf.org/html/rfc7230) - Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing\n- [RFC 7231](https://tools.ietf.org/html/rfc7231) - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content\n\n### Exceptions\n\n- OPTIONAL requirements\n- Obsolete grammar rules (e.g. obsolete line folding)\n\n## Error Handling\n\nhypp's parser functions return an `Expected` object, which contains either the expected result or an `Error`. For more information, see the `std::expected` proposal or the Usage section below.\n\nhypp treats unsupported HTTP versions as errors, and does not attempt to recover usable protocol elements from invalid constructs.\n\n## Usage\n\n***This is a work in progress. Usage in public applications is not yet recommended.***\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003chypp.hpp\u003e\n\nint main() {\n  // Example response from RFC 7230 Section 2.1\n  constexpr auto example =\n      \"HTTP/1.1 200 OK\\r\\n\"\n      \"Date: Mon, 27 Jul 2009 12:28:53 GMT\\r\\n\"\n      \"Server: Apache\\r\\n\"\n      \"Last-Modified: Wed, 22 Jul 2009 19:15:56 GMT\\r\\n\"\n      \"ETag: \\\"34aa387-d-1568eb00\\\"\\r\\n\"\n      \"Accept-Ranges: bytes\\r\\n\"\n      \"Content-Length: 51\\r\\n\"\n      \"Vary: Accept-Encoding\\r\\n\"\n      \"Content-Type: text/plain\\r\\n\"\n      \"\\r\\n\"\n      \"Hello World! My payload includes a trailing CRLF.\\r\\n\";\n\n  // Returns hypp::Expected\u003chypp::Response\u003e\n  const auto expected = hypp::ParseResponse(example);\n\n  if (!expected) {\n    std::cout \u003c\u003c \"Error: \" \u003c\u003c hypp::to_string(expected.error()) \u003c\u003c '\\n';\n    return 1;\n  }\n\n  const auto\u0026 r = expected.value();\n  std::cout \u003c\u003c r.start_line.code \u003c\u003c '\\n';             // 200\n  std::cout \u003c\u003c r.header_fields.back().value \u003c\u003c '\\n';  // text/plain\n  std::cout \u003c\u003c r.body.substr(0, 12) \u003c\u003c '\\n';          // Hello World!\n\n  return 0;\n}\n```\n\n## License\n\nLicensed under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferengy%2Fhypp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferengy%2Fhypp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferengy%2Fhypp/lists"}