{"id":16608603,"url":"https://github.com/arsdever/httpcpp","last_synced_at":"2025-03-10T15:10:12.683Z","repository":{"id":135995080,"uuid":"298084565","full_name":"arsdever/httpcpp","owner":"arsdever","description":"C++ HTTP library","archived":false,"fork":false,"pushed_at":"2021-03-19T06:04:32.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T13:20:00.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/arsdever.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}},"created_at":"2020-09-23T20:18:37.000Z","updated_at":"2020-09-23T20:51:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"a93003d5-448e-47a8-baf7-f1e346f51835","html_url":"https://github.com/arsdever/httpcpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsdever%2Fhttpcpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsdever%2Fhttpcpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsdever%2Fhttpcpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsdever%2Fhttpcpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arsdever","download_url":"https://codeload.github.com/arsdever/httpcpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242873753,"owners_count":20199293,"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":[],"created_at":"2024-10-12T01:26:45.365Z","updated_at":"2025-03-10T15:10:12.672Z","avatar_url":"https://github.com/arsdever.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ HTTP library\n\n## About\nThis library contains the implementation of HTTP in C++ inspired by\n[NodeJS HTTP](https://nodejs.org/api/http.html) module. It is tempting bo be\neasy in use (like NodeJS one does) and extensible. The current roadmap\nonly includes [expresscpp](https://github.com/arsdever/expresscpp) module implementation, which, as you\nmight have guessed, will be based on [NodeJS Express](https://expressjs.com/)\nmodule\n\n## Build\nThis library contains only headers. But an additional third-party library\n[sockpp](https://github.com/fpagliughi/sockpp) is required when building\nyour application or library.\n\n## Usage\nYou should just include `\u003chttp.h\u003e` header and start using it. Here is\na very simple example of its usage:\n```c++\n#include \u003chttp.h\u003e\n#include \u003cthread\u003e\n\nusing namespace events;\nusing namespace http;\n\nint main()\n{\n\tserver svr;\n\tbool finished;\n\tsvr.on_request += [\u0026finished](incoming_message\u0026 req, server_response\u0026 res) {\n\t\tres.end(\"Hello world\");\n\t\tfinished = true;\n\t};\n\n\tsvr.listen();\n\twhile (!finished)\n\t\tstd::this_thread::sleep_for(std::chrono::milliseconds(200));\n\n\tsvr.close();\n\treturn 0;\n}\n```\n\n## Notes\n\nI try to keep the interface of the library very close to\nthe one existing on NodeJS. So, anybody with knowledge\nin NodeJS HTTP can easily understand this library and\nvice-versa.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsdever%2Fhttpcpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farsdever%2Fhttpcpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsdever%2Fhttpcpp/lists"}