{"id":15099870,"url":"https://github.com/abhaysp95/noob_http_server","last_synced_at":"2026-03-03T15:02:46.925Z","repository":{"id":245664934,"uuid":"818903535","full_name":"abhaysp95/noob_http_server","owner":"abhaysp95","description":"A simple http server","archived":false,"fork":false,"pushed_at":"2024-07-01T17:09:50.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T00:21:14.435Z","etag":null,"topics":["http-server","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/abhaysp95.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":"2024-06-23T07:55:56.000Z","updated_at":"2024-07-01T17:09:54.000Z","dependencies_parsed_at":"2024-09-20T03:32:33.670Z","dependency_job_id":"69108f95-4cbd-48f2-bd90-f62253d3a336","html_url":"https://github.com/abhaysp95/noob_http_server","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":"0.022727272727272707","last_synced_commit":"a5049c48c699ee69d81068592528e5cf711c738e"},"previous_names":["abhaysp95/noob_http_server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhaysp95%2Fnoob_http_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhaysp95%2Fnoob_http_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhaysp95%2Fnoob_http_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhaysp95%2Fnoob_http_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhaysp95","download_url":"https://codeload.github.com/abhaysp95/noob_http_server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240645139,"owners_count":19834389,"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":["http-server","zig","ziglang"],"created_at":"2024-09-25T17:28:29.745Z","updated_at":"2025-11-18T15:04:03.796Z","avatar_url":"https://github.com/abhaysp95.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![progress-banner](https://backend.codecrafters.io/progress/http-server/dd95bd37-a3b1-4058-b29b-60ff03d2949d)](https://app.codecrafters.io/users/codecrafters-bot?r=2qF)\n\n# Noob Http Server\n\nThis is not like prod-ready server or anything. The purpose of this project was to learn the internal mechanism of how a typical HTTP server works. Here I have built a simple server for `HTTP/1.1` protocol.\n\n### 📖 Learnings\n\nFollowing are the things which I learned:\n\n* Establishing connection via TCP server. \n* Reading the client request.\n* Parsing the client request (Request line, Headers \u0026 Body).\n* Forming the response (Status line, Headers \u0026 Body).\n* Sending the response back to the client.\n* Handling multiple clients (i.e., concurrent connections)\n* Handling signal sent from terminal running the server.\n* Sending over the file to client upon request.\n* Learn some bits about HTTP compression mechanism.\n* Parsing for the multiple compression schemes.\n* Support for Gzip compression.\n\n### ⚡️ Requirements\n\nThe project is written in [Zig](https://ziglang.org/) programming language. The experience to use this language was pleasant. I would encourage for people to try it out. The comunity of the language although relatively small, has been a helping one. I would continue doing some other projects on this language.\n\n\u003ca href=\"https://emoji.gg/emoji/3421-zig\"\u003e\u003cimg src=\"https://cdn3.emoji.gg/emojis/3421-zig.png\" width=\"64px\" height=\"64px\" alt=\"zig\"\u003e\u003c/a\u003e\n\n\nHere are the steps to build the project:\n\n* Follow the steps mentioned on the [zig's official site](https://ziglang.org/learn/getting-started/#installing-zig) and setup the language.\n* Run the command `zig build-exe src/main.zig` to build the executable\n* Simply run the executable as `./main`\n\n---\n\nThe following project was done as part of **Codecrafters** challenge. You can read more about the codecrafters from below.\n\n\nThis is a starting point for Zig solutions to the\n[\"Build Your Own HTTP server\" Challenge](https://app.codecrafters.io/courses/http-server/overview).\n\n[HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) is the\nprotocol that powers the web. In this challenge, you'll build a HTTP/1.1 server\nthat is capable of serving multiple clients.\n\nAlong the way you'll learn about TCP servers,\n[HTTP request syntax](https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html),\nand more.\n\n**Note**: If you're viewing this repo on GitHub, head over to\n[codecrafters.io](https://codecrafters.io) to try the challenge.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhaysp95%2Fnoob_http_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhaysp95%2Fnoob_http_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhaysp95%2Fnoob_http_server/lists"}