{"id":36912593,"url":"https://github.com/shorya-1012/http_server","last_synced_at":"2026-01-12T16:00:13.353Z","repository":{"id":297671251,"uuid":"993838756","full_name":"shorya-1012/http_server","owner":"shorya-1012","description":"A HTTP Server made from scratch in C++.","archived":false,"fork":false,"pushed_at":"2025-06-06T18:00:51.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-06T19:18:53.194Z","etag":null,"topics":["cpp","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/shorya-1012.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,"zenodo":null}},"created_at":"2025-05-31T16:24:39.000Z","updated_at":"2025-06-06T18:00:53.000Z","dependencies_parsed_at":"2025-06-06T19:29:05.512Z","dependency_job_id":null,"html_url":"https://github.com/shorya-1012/http_server","commit_stats":null,"previous_names":["shorya-1012/http_server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shorya-1012/http_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shorya-1012%2Fhttp_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shorya-1012%2Fhttp_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shorya-1012%2Fhttp_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shorya-1012%2Fhttp_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shorya-1012","download_url":"https://codeload.github.com/shorya-1012/http_server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shorya-1012%2Fhttp_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28341936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T15:50:39.657Z","status":"ssl_error","status_checked_at":"2026-01-12T15:49:49.297Z","response_time":98,"last_error":"SSL_read: 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":["cpp","http-server"],"created_at":"2026-01-12T16:00:10.177Z","updated_at":"2026-01-12T16:00:13.258Z","avatar_url":"https://github.com/shorya-1012.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple HTTP Server in C++\n\nThis is a basic Multi-Threaded HTTP Server implemented from scratch in C++ with support for serving HTML, plain text, and CSS files.\n\n## Features\n\n- Handle multiple routes\n- Implements Multi-Threading using a Thread Pool.\n- Serve static HTML and CSS files\n- Send plain text responses\n\n\n## Build Instructions\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/shorya-1012/http_server.git\ncd http-server\n````\n\n2. Build the project using CMake:\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\n```\n\n3. Run the server:\n\n```bash\n./server\n```\n\n4. Open your browser and navigate to:\n\n* `http://localhost:8080/`\n\n## Example Main Function\n\n```cpp\nint main(int argc, char *argv[]) {\n  Server server;\n\n  server.add_routes(\"/\", [](HttpRequest \u0026req, HttpResponse \u0026res) {\n    res.send_html(200, \"../templates/index.html\");\n  });\n\n  server.add_routes(\"/about\", [](HttpRequest \u0026req, HttpResponse \u0026res) {\n    res.send_text(200, \"Welcome to About Page\");\n  });\n\n  server.add_routes(\"/foo\", [](HttpRequest \u0026req, HttpResponse \u0026res) {\n    res.send_text(200, \"BAR\");\n  });\n\n  server.run(8080);\n  return 0;\n}\n```\n\n## Dependencies\n\nNo external dependencies. Uses only standard C++ and POSIX system calls (`socket`, `fork`, `read`, `write`, etc.).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshorya-1012%2Fhttp_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshorya-1012%2Fhttp_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshorya-1012%2Fhttp_server/lists"}