{"id":41423660,"url":"https://github.com/pfeatherstone/https","last_synced_at":"2026-01-23T14:11:12.305Z","repository":{"id":294395470,"uuid":"922133429","full_name":"pfeatherstone/https","owner":"pfeatherstone","description":"HTTPS and WSS library","archived":false,"fork":false,"pushed_at":"2025-07-10T17:24:55.000Z","size":3517,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-10T22:58:39.505Z","etag":null,"topics":["asio","cpp","https","websocket"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pfeatherstone.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":"2025-01-25T12:07:05.000Z","updated_at":"2025-07-09T04:43:22.000Z","dependencies_parsed_at":"2025-07-01T21:27:48.190Z","dependency_job_id":"cb451200-6445-4d3d-a9fd-833deda2141a","html_url":"https://github.com/pfeatherstone/https","commit_stats":null,"previous_names":["pfeatherstone/https"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pfeatherstone/https","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfeatherstone%2Fhttps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfeatherstone%2Fhttps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfeatherstone%2Fhttps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfeatherstone%2Fhttps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfeatherstone","download_url":"https://codeload.github.com/pfeatherstone/https/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfeatherstone%2Fhttps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28693664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"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":["asio","cpp","https","websocket"],"created_at":"2026-01-23T14:11:11.593Z","updated_at":"2026-01-23T14:11:12.287Z","avatar_url":"https://github.com/pfeatherstone.png","language":"C++","readme":"![Ubuntu](https://github.com/pfeatherstone/https/actions/workflows/ubuntu.yml/badge.svg)\n![MacOS](https://github.com/pfeatherstone/https/actions/workflows/macos.yml/badge.svg)\n![Windows](https://github.com/pfeatherstone/https/actions/workflows/windows.yml/badge.svg)\n[![codecov](https://codecov.io/gh/pfeatherstone/https/branch/main/graph/badge.svg)](https://codecov.io/gh/pfeatherstone/https)\n\n# https\n\nProvides HTTP(s) and WS(s) primitives as Asio [composed operations](https://think-async.com/Asio/asio-1.30.2/doc/asio/overview/composition/compose.html).\nThis is an experimental replacement for Boost::Beast.\n\n## Installation\n\nCopy the contents of `src` into your project then link to Boost::asio. If you're using transport over TLS, then link to OpenSSL::SSL and OpenSSL::Crypto.\n\n## Examples\n\nTry out:\n- [server.cpp](examples/server.cpp)\n- [client_http.cpp](examples/client_http.cpp)\n- [client_ws_awaitable.cpp](examples/client_ws_awaitable.cpp)\n- [client_ws_coro.cpp](examples/client_ws_coro.cpp)\n\nBuild using:\n\n```bash\n$ cmake ./examples -B build -DCMAKE_BUILD_TYPE=Release\n$ cmake --build build --parallel\n```\n\n## Unit tests\n\nBuild as above. Run using:\n\n```bash\n$ ./build/tests\n```\n\n## Benchmarks\n\nI benchmarked the example [server](examples/server.cpp) using [ab](https://httpd.apache.org/docs/2.4/programs/ab.html). \n\nI used the following commands for HTTP and HTTPS respectively:\n\n```bash\n$ ab -A Tommy:Aldridge -n 500000 -c \u003cC\u003e -k http://localhost:8000/ok\n$ ab -A Tommy:Aldridge -n 500000 -c \u003cC\u003e -k https://localhost:8000/ok\n```\n\nNote, the example server is single threaded, uses C++20 coroutines and basic authentication. The tests were undertaken on an Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz 12 core processor. I'm using gcc 13.1.0 and openssl 3.0.2.\n\n| Transport | Connections | Requests / s |\n| --------- | ----------- | -------------|\n| TCP       | 1           | 49299.87     |\n| TCP       | 2           | 86850.14     |\n| TCP       | 5           | 102857.48    |\n| TCP       | 10          | 111504.62    |\n| TLS       | 1           | 33671.01     |\n| TLS       | 2           | 62024.36     |\n| TLS       | 5           | 70269.52     |\n| TLS       | 10          | 78444.07     |\n\nNot bad.\n\n## Roadmap\n- [ ] Chunked encoding\n- [ ] Documentation\n\n## Questions\n\n- Q: Why not use Beast?\n\n  A: I find Beast bloated and unecessarily complicated. HTTP1 and WS are simple protocols. There is SO MUCH source code in Beast and I'm not convinced it's proportionate.\n\n- Q: Why are you not writing the base library Sans-IO?\n\n  A: Because I'm only going to use this with Asio. I don't mind having state-machine logic inside an Asio composed operation rather than something custom. As far as I can tell, the only motivation for Sans-IO is unit tests.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfeatherstone%2Fhttps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfeatherstone%2Fhttps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfeatherstone%2Fhttps/lists"}