{"id":43319621,"url":"https://github.com/mohammedgqudah/rust-http-server","last_synced_at":"2026-02-01T22:30:38.324Z","repository":{"id":265556097,"uuid":"860026511","full_name":"mohammedgqudah/rust-http-server","owner":"mohammedgqudah","description":"A toy HTTP implementation","archived":false,"fork":false,"pushed_at":"2024-10-02T17:36:13.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-26T21:24:02.615Z","etag":null,"topics":["http","http-server","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/mohammedgqudah.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-09-19T17:30:56.000Z","updated_at":"2024-10-02T17:36:14.000Z","dependencies_parsed_at":"2024-11-29T23:03:31.970Z","dependency_job_id":null,"html_url":"https://github.com/mohammedgqudah/rust-http-server","commit_stats":null,"previous_names":["mohammedgqudah/rust-http-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohammedgqudah/rust-http-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedgqudah%2Frust-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedgqudah%2Frust-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedgqudah%2Frust-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedgqudah%2Frust-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammedgqudah","download_url":"https://codeload.github.com/mohammedgqudah/rust-http-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedgqudah%2Frust-http-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28993252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T22:01:47.507Z","status":"ssl_error","status_checked_at":"2026-02-01T21:58:37.335Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["http","http-server","rust"],"created_at":"2026-02-01T22:30:38.261Z","updated_at":"2026-02-01T22:30:38.316Z","avatar_url":"https://github.com/mohammedgqudah.png","language":"Rust","readme":"# HTTP In Rust\nThis is a toy HTTP implementation in Rust. I'm doing this solely to practice Rust.\n\n# Example\n```rust\nmod http;\nuse http::{\n    request::{Method, Request},\n    server::Server,\n};\nuse std::fs;\n\nfn headers(request: \u0026Request) -\u003e Response {\n    match (request.path.as_str(), \u0026request.method) {\n        (\"/\", Method::GET) =\u003e Response {\n            body: fs::read(\"src/static/headers.html\").expect(\"ON\"),\n            headers: Headers::new(\"\"),\n            status: Status::Ok,\n        },\n        (\"/\", Method::POST) =\u003e {\n            Response {\n                body: \"POST!\".as_bytes().to_vec(),\n                headers: Headers::new(\"\"),\n                status: Status::Ok,\n            }\n        }\n        _ =\u003e Response {\n            body: format!(\"\u003ch1\u003e{} Not Found\u003c/h1\u003e\", request.path)\n                .as_bytes()\n                .to_vec(),\n            headers: Headers::new(\"\"),\n            status: Status::NotFound,\n        },\n    }\n}\nfn main() {\n    let mut server = Server::new(\"0.0.0.0:4000\");\n    let _ = server.on_request(headers).listen();\n}\n```\n\n# Roadmap\n- [x] A single-thread blocking version\n- [x] A thread pool version\n- [ ] A non-blocking single-thread version\n- [ ] A complete HTTP/1 and HTTP/1.1 parser\n- [ ] TLS\n- [ ] HTTP/2 Implementation\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammedgqudah%2Frust-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammedgqudah%2Frust-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammedgqudah%2Frust-http-server/lists"}