{"id":27066082,"url":"https://github.com/maxrt101/http-server","last_synced_at":"2025-09-07T21:35:18.974Z","repository":{"id":133619719,"uuid":"373655027","full_name":"maxrt101/http-server","owner":"maxrt101","description":"HTTP Server","archived":false,"fork":false,"pushed_at":"2021-11-18T16:04:24.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T16:34:25.897Z","etag":null,"topics":["cpp17","http-server"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxrt101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-06-03T22:17:10.000Z","updated_at":"2022-08-24T22:09:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7218e44-004f-4c42-8517-861d35c33a6f","html_url":"https://github.com/maxrt101/http-server","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/maxrt101/http-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxrt101%2Fhttp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxrt101%2Fhttp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxrt101%2Fhttp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxrt101%2Fhttp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxrt101","download_url":"https://codeload.github.com/maxrt101/http-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxrt101%2Fhttp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274100873,"owners_count":25222444,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","http-server"],"created_at":"2025-04-05T18:34:57.330Z","updated_at":"2025-09-07T21:35:18.945Z","avatar_url":"https://github.com/maxrt101.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Server\nSimple HTTP Server implementation in C++.  \nSupports flask-like API for creating endpoints.  \n\n### How To Build:\nDependencies: `git`, `gcc`/`clang`, `make`, binutils(`ar`)\n\n - Clone repo\n - `cd http-server`\n - `git submodule update --init --recursive`\n - `make PREFIX=/path/to/install/dir`, set `PREFIX` to desired install location. If no prefix is specified, `build` folder will be created\n\nAfter install `libhttpserver.a` and `libmrt.a` will be present inside `PREFIX/lib` along with all required headers (in `PREFIX/include`)\n\nTo embed http-server into your project, you can just include it as a git submodule, and run `make -C http-server` inside your projects `Makefile`\n\n### Example:\n```c++\n\nmrt::Server server;\n\nserver.addEndpoint({\"/api\", http::Method::GET, [](auto request) {\n  return http::Response(http::OK).setContent(\"text/plain\", \"Hello, World!\");\n}});\n\nserver.addEndpoint({\"/api\", http::Method::POST, [](auto request) {\n  std::string body;\n  for (auto\u0026 p : request.header.params) {\n    body += p.first + \" = \" + p.second + \"\\n\";\n  }\n  return http::Response(http::OK).setContent(\"text/plain\", body);\n}});\n\nserver.run();\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxrt101%2Fhttp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxrt101%2Fhttp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxrt101%2Fhttp-server/lists"}