{"id":34698482,"url":"https://github.com/adhamsalama/blitzkrieg","last_synced_at":"2026-03-17T20:05:21.964Z","repository":{"id":65787840,"uuid":"592990460","full_name":"adhamsalama/blitzkrieg","owner":"adhamsalama","description":"An HTTP web server written from scratch in Rust.","archived":false,"fork":false,"pushed_at":"2023-09-30T18:02:44.000Z","size":68,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T10:51:04.597Z","etag":null,"topics":["http","http-server","rust","webserver"],"latest_commit_sha":null,"homepage":"https://docs.rs/blitzkrieg/latest/blitzkrieg/","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/adhamsalama.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}},"created_at":"2023-01-25T00:44:35.000Z","updated_at":"2024-02-13T11:52:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"53bf702b-f4e7-4063-b85e-a2e3d47ca676","html_url":"https://github.com/adhamsalama/blitzkrieg","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/adhamsalama/blitzkrieg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhamsalama%2Fblitzkrieg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhamsalama%2Fblitzkrieg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhamsalama%2Fblitzkrieg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhamsalama%2Fblitzkrieg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adhamsalama","download_url":"https://codeload.github.com/adhamsalama/blitzkrieg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhamsalama%2Fblitzkrieg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30630045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"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":["http","http-server","rust","webserver"],"created_at":"2025-12-24T22:48:49.965Z","updated_at":"2026-03-17T20:05:21.959Z","avatar_url":"https://github.com/adhamsalama.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blitzkrieg\n\n\u003cimg src=\"https://cdn-icons-png.flaticon.com/512/3857/3857541.png\" style=\"width: 20%; height: 50%\" alt=\"Blitzkrieg airplane logo\"\u003e\n\nAn HTTP web server written from scratch in Rust (WIP).\n\n## Documentation\n\nhttps://docs.rs/blitzkrieg/latest/blitzkrieg/\n\n## Installation\n\n`cargo add blitzkrieg`\n\n## Usage\n\n### [Hello world](examples/hello_world.rs)\n\n```rust\nuse blitzkrieg::http::{Request, Response};\nuse blitzkrieg::server::Server;\n\nfn main() {\n    let server = Server::new(\"127.0.0.1:3000\", 4, Box::new(handler));\n    server.start();\n}\n\nfn handler(request: Request) -\u003e Response {\n    Response::new(200).body(\"Hello, world!\")\n}\n```\n\n### [File](examples/file.rs)\n\n```rust\nuse std::collections::HashMap;\n\nuse blitzkrieg::{\n    http::{BodyType, Request, Response},\n    server::Server,\n};\n\nfn main() {\n    let server = Server::new(\"127.0.0.1:4242\", 4, Box::new(handler));\n    server.start();\n}\n\nfn handler(req: Request) -\u003e Response {\n    let mut res = Response::new(200);\n    let file = if let Some(BodyType::File(file)) = req.body {\n        file\n    } else {\n        return res.body(\"Hello, world!\");\n    };\n    std::fs::write(format!(\"file.{}\", file.extension), \u0026file.content.clone()).unwrap();\n    res.body = Some(file.content);\n    let mut headers = HashMap::new();\n    headers.insert(\n        \"Content-Type\".into(),\n        req.headers.get(\"Content-Type\").unwrap().into(),\n    );\n    res.headers = Some(headers);\n    res\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadhamsalama%2Fblitzkrieg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadhamsalama%2Fblitzkrieg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadhamsalama%2Fblitzkrieg/lists"}