{"id":36816733,"url":"https://github.com/x-mod/httpserver","last_synced_at":"2026-01-12T13:54:28.826Z","repository":{"id":57490207,"uuid":"203604797","full_name":"x-mod/httpserver","owner":"x-mod","description":"httpserver for grpc/pb","archived":false,"fork":false,"pushed_at":"2024-02-04T10:27:42.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-04T11:51:25.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/x-mod.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}},"created_at":"2019-08-21T14:46:10.000Z","updated_at":"2024-02-04T11:51:25.218Z","dependencies_parsed_at":"2022-09-02T12:01:18.243Z","dependency_job_id":null,"html_url":"https://github.com/x-mod/httpserver","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/x-mod/httpserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Fhttpserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Fhttpserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Fhttpserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Fhttpserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-mod","download_url":"https://codeload.github.com/x-mod/httpserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-mod%2Fhttpserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"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":"2026-01-12T13:54:28.060Z","updated_at":"2026-01-12T13:54:28.804Z","avatar_url":"https://github.com/x-mod.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"httpserver\n===\n\nAnother HTTP Server use handler with context \u0026 Response Render.\n\n# Quick Start\n\n````go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/x-mod/httpserver\"\n)\n\nfunc main() {\n\tsrv := httpserver.NewServer(\n\t\thttpserver.Address(\":8080\"),\n\t)\n\tsrv.Route(\n\t\thttpserver.Pattern(\"/hello\"),\n\t\thttpserver.Handler(http.HandlerFunc(Hello)),\n\t)\n\tlog.Println(\"httpserver:\", srv.Serve(context.TODO()))\n}\n\nfunc Hello(wr http.ResponseWriter, req *http.Request) {\n\twr.WriteHeader(http.StatusOK)\n\t_, _ = wr.Write([]byte(\"I'm OK\"))\n}\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-mod%2Fhttpserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-mod%2Fhttpserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-mod%2Fhttpserver/lists"}