{"id":15294951,"url":"https://github.com/somebadcode/gracefulhttp","last_synced_at":"2025-06-29T04:37:07.946Z","repository":{"id":119745082,"uuid":"307103492","full_name":"somebadcode/gracefulhttp","owner":"somebadcode","description":"A simple HTTP server that will gracefully shut down if an error occurs or a signal is received.","archived":false,"fork":false,"pushed_at":"2021-11-29T14:30:10.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T17:53:02.505Z","etag":null,"topics":["go","golang","golang-examples","http-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/somebadcode.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":"2020-10-25T13:19:59.000Z","updated_at":"2021-11-29T18:13:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"3947f381-c2f8-414a-b505-508d53770043","html_url":"https://github.com/somebadcode/gracefulhttp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/somebadcode/gracefulhttp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgracefulhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgracefulhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgracefulhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgracefulhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/somebadcode","download_url":"https://codeload.github.com/somebadcode/gracefulhttp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgracefulhttp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262536829,"owners_count":23325801,"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","golang-examples","http-server"],"created_at":"2024-09-30T17:08:04.759Z","updated_at":"2025-06-29T04:37:07.887Z","avatar_url":"https://github.com/somebadcode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Simple HTTP server with graceful shutdown\nThis is a simple HTTP server that allows for graceful shutdowns by using context. I've only included  one third party\nlibrary which I use for logging, so it has nothing to do with the solution in and of itself. I have also included a\nsmall example of how to embed files into the final binary and in this case it's part of a small demo web application.\n\nYou can freely use this project as a starting point or as a reference on how can you use `context` to gracefully handle\nsignals and other concurrent code in general.\n\n### Contribution\nAnyone can contribute as long as it doesn't add new functionality or anything that requires a change of license.\nI only accept fixes and improved solutions since this is only meant as a starting point or as a reference for other\nprojects.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomebadcode%2Fgracefulhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomebadcode%2Fgracefulhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomebadcode%2Fgracefulhttp/lists"}