{"id":20102566,"url":"https://github.com/entrlcom/go-http-server","last_synced_at":"2025-03-28T00:48:33.238Z","repository":{"id":242061153,"uuid":"808252609","full_name":"entrlcom/go-http-server","owner":"entrlcom","description":"HTTP server with tuned and hardened defaults ready for Internet exposure.","archived":false,"fork":false,"pushed_at":"2024-05-31T10:08:45.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-02T02:45:43.443Z","etag":null,"topics":["go","golang","http-server","security"],"latest_commit_sha":null,"homepage":"https://blog.cloudflare.com/exposing-go-on-the-internet","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/entrlcom.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":"2024-05-30T17:28:00.000Z","updated_at":"2024-06-05T15:13:00.000Z","dependencies_parsed_at":"2024-05-31T12:40:46.648Z","dependency_job_id":"83254335-0366-4b7d-a658-f1f454fa5283","html_url":"https://github.com/entrlcom/go-http-server","commit_stats":null,"previous_names":["entrlcom/go-http-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entrlcom%2Fgo-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entrlcom%2Fgo-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entrlcom%2Fgo-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entrlcom%2Fgo-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/entrlcom","download_url":"https://codeload.github.com/entrlcom/go-http-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245949603,"owners_count":20698922,"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":["go","golang","http-server","security"],"created_at":"2024-11-13T17:31:47.161Z","updated_at":"2025-03-28T00:48:33.214Z","avatar_url":"https://github.com/entrlcom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP server\n\n## Table of Content\n\n- [Examples](#examples)\n- [License](#license)\n- [Links](#links)\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\n\t\"entrlcom.dev/http-server\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\n\t// HTTP server.\n\thttpServer := http_server.NewHTTPServer()\n\thttpServer.Addr = \"\"     // TODO: set address.\n\thttpServer.Handler = nil // TODO: set handler.\n\n\tif err := httpServer.ListenAndServe(); err != nil {\n\t\t// TODO: Handle error.\n\t\treturn\n\t}\n\n\t// ...\n\n\t// Shutdown HTTP server.\n\tif err := httpServer.Shutdown(ctx); err != nil {\n\t\t// TODO: Handle error.\n\t\treturn\n\t}\n\n\t// ...\n}\n\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Links\n\n* [So you want to expose Go on the Internet](https://blog.cloudflare.com/exposing-go-on-the-internet/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentrlcom%2Fgo-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentrlcom%2Fgo-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentrlcom%2Fgo-http-server/lists"}