{"id":20441177,"url":"https://github.com/darrensemusemu/httpz","last_synced_at":"2025-12-01T19:06:28.337Z","repository":{"id":171385711,"uuid":"602736939","full_name":"darrensemusemu/httpz","owner":"darrensemusemu","description":"A simple Go like http server implementation","archived":false,"fork":false,"pushed_at":"2023-02-28T21:45:58.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T20:26:56.244Z","etag":null,"topics":["http","http-server","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/darrensemusemu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-02-16T20:50:08.000Z","updated_at":"2023-10-29T21:45:29.000Z","dependencies_parsed_at":"2024-05-03T14:01:59.252Z","dependency_job_id":null,"html_url":"https://github.com/darrensemusemu/httpz","commit_stats":null,"previous_names":["darrensemusemu/httpz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrensemusemu%2Fhttpz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrensemusemu%2Fhttpz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrensemusemu%2Fhttpz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrensemusemu%2Fhttpz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darrensemusemu","download_url":"https://codeload.github.com/darrensemusemu/httpz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241989855,"owners_count":20053802,"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","http-server","zig"],"created_at":"2024-11-15T09:30:32.662Z","updated_at":"2025-12-01T19:06:23.303Z","avatar_url":"https://github.com/darrensemusemu.png","language":"Zig","readme":"# httpz\n\nA simple Go like http server implementation. Note: WIP.\n\n## Example\n\n### Simple Server\n\n```zig\n// ....\nconst addr = try net.Address.parseIp(\"0.0.0.0\", 8080);\nvar http_server = httpz.Server.init(allocator, addr);\ndefer http_server.close();\n\nconst t = struct {\n    fn handleHome(res: *httpz.Response, _: *httpz.Request) anyerror!void {\n        res.status = .ok;\n        try res.setHeader(\"Content-Type\", \"text/plain\");\n        try res.body.appendSlice(\"Hello World\");\n    }\n};\n\nvar mux = httpz.Mux.init(allocator);\ntry mux.handle(\"/\", t.handleHome);\n\nstd.log.info(\"running on port: 8080\", .{});\ntry http_server.listenAndServe(\u0026mux);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrensemusemu%2Fhttpz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarrensemusemu%2Fhttpz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrensemusemu%2Fhttpz/lists"}