{"id":17674426,"url":"https://github.com/bernoussama/httpc","last_synced_at":"2026-02-01T06:31:47.622Z","repository":{"id":248390947,"uuid":"828521024","full_name":"bernoussama/httpc","owner":"bernoussama","description":"Simple HTTP server in C","archived":false,"fork":false,"pushed_at":"2024-12-06T01:27:27.000Z","size":405,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-26T07:37:04.620Z","etag":null,"topics":[],"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/bernoussama.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":"2024-07-14T12:04:37.000Z","updated_at":"2025-07-13T12:22:33.000Z","dependencies_parsed_at":"2025-04-16T02:45:22.229Z","dependency_job_id":"78f33953-79c2-425b-b12d-92915b6bb34e","html_url":"https://github.com/bernoussama/httpc","commit_stats":null,"previous_names":["0ussamabernou/codecrafters-http-server-c","0ussamabernou/httpc","bernoussama/httpc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bernoussama/httpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernoussama%2Fhttpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernoussama%2Fhttpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernoussama%2Fhttpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernoussama%2Fhttpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bernoussama","download_url":"https://codeload.github.com/bernoussama/httpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernoussama%2Fhttpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28970525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T05:48:53.985Z","status":"ssl_error","status_checked_at":"2026-02-01T05:47:55.855Z","response_time":56,"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":[],"created_at":"2024-10-24T07:07:01.636Z","updated_at":"2026-02-01T06:31:47.584Z","avatar_url":"https://github.com/bernoussama.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca id=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![MIT License][license-shield]][license-url]\n[![CodeFactor](https://www.codefactor.io/repository/github/bernoussama/httpc/badge)](https://www.codefactor.io/repository/github/bernoussama/httpc)\n\u003c/div\u003e\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n \u003cimg src=\"./httpc-logo.jpg\" width=\"200\" height=\"200\"\u003e\n\u003ch1 align=\"center\"\u003eHTTPC\u003c/h1\u003e\n\u003c/div\u003e\n\n[![progress-banner](https://backend.codecrafters.io/progress/http-server/d6024b54-aeef-4707-9128-f99b7d5d5df8)](https://app.codecrafters.io/users/codecrafters-bot?r=2qF)\n\n## About\n\n[HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) is the\nprotocol that powers the web. In this [\"Build Your Own HTTP server\" Challenge](https://app.codecrafters.io/courses/http-server/overview), I built a multithreaded HTTP/1.1 server in C that is capable of serving multiple clients.\n\ncheck out CodeCrafters programming challenges and get a free week using my [referral link](https://app.codecrafters.io/r/cute-gorilla-362426). I will get one too.\n\n## Getting Started\n\nThe entry point for the HTTP server implementation is in `app/server.c`.\n\n```sh\n# compile the server\ngcc -lz -lcurl  app/*.c -o server\n# start the server\n./server --directory /tmp/\n```\n\n\u003c!-- ROADMAP --\u003e\n\n## Roadmap\n\n- [x] Bind to a port\n- [x] Respond with 200\n- [x] Respond with body\n- [x] Read header\n- [x] Concurrent connections\n- [x] Return a file\n- [x] Read request body\n- [ ] HTTP compression\n  - [ ] Compression headers\n  - [ ] Multiple Compression schemes\n  - [ ] Gzip compression\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See [LICENSE](https://github.com/bernoussama/httpc/blob/master/licence.txt) for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nOussama Bernou - [@bernoussama](https://x.com/bernoussama) - contact@bernoussama.com\n\n\u003c!-- Project Link: [https://github.com/your_username/repo_name](https://github.com/your_username/repo_name) --\u003e\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n### Built With\n\n [![C][C-shield]][C-url]\n\n\n## Resources\n\n- [HTTP request syntax](https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html)\n\n- [Threading in C](https://www.geeksforgeeks.org/multithreading-in-c)\n\n- The challenge instructions were also a good help.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[license-shield]: https://img.shields.io/github/license/bernoussama/httpc\n[license-url]: https://github.com/bernoussama/httpc/blob/master/LICENSE.txt\n[C-shield]: https://img.shields.io/badge/-0769AD?style=for-the-badge\u0026logo=C\u0026logoColor=white\n[C-url]: https://en.wikipedia.org/wiki/C_(programming_language)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernoussama%2Fhttpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernoussama%2Fhttpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernoussama%2Fhttpc/lists"}