{"id":36813019,"url":"https://github.com/hemantjadon/respond","last_synced_at":"2026-01-12T13:51:02.799Z","repository":{"id":57510439,"uuid":"236298416","full_name":"hemantjadon/respond","owner":"hemantjadon","description":"Low friction, simple API for HTTP responses in go","archived":false,"fork":false,"pushed_at":"2020-06-03T09:53:41.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T08:02:18.117Z","etag":null,"topics":["go","golang","http"],"latest_commit_sha":null,"homepage":"","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/hemantjadon.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":"2020-01-26T10:45:33.000Z","updated_at":"2024-06-20T08:02:18.118Z","dependencies_parsed_at":"2022-09-26T17:50:50.447Z","dependency_job_id":null,"html_url":"https://github.com/hemantjadon/respond","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hemantjadon/respond","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantjadon%2Frespond","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantjadon%2Frespond/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantjadon%2Frespond/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantjadon%2Frespond/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hemantjadon","download_url":"https://codeload.github.com/hemantjadon/respond/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantjadon%2Frespond/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339582,"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":["go","golang","http"],"created_at":"2026-01-12T13:51:02.103Z","updated_at":"2026-01-12T13:51:02.779Z","avatar_url":"https://github.com/hemantjadon.png","language":"Go","readme":"# respond\n\n![Go](https://github.com/hemantjadon/respond/workflows/Go/badge.svg?branch=master\u0026event=push)\n\nPackage responds provides low touch, minimal API for sending HTTP API responses\nin go.\n\nFor simple string responses can be used simply as:\n```go\nfunc handler(w http.ResponseWriter, r *http.Request) {\n     respond.With(w, http.StatusOK, []byte(`Hello World!`))\n}\n```\n\nFor more complex use cases where we want to send JSON across this respond\nprovides handy utility function which can be used as follows:\n```go\ntype response struct {\n    Message string `json: \"message\"`\n}\n\nfunc handler(w http.ResponseWriter, r *http.Request) {\n    resp := response{Message: \"Hello World!\"}\n    respond.WithJSON(w, http.StatusOK, response)\n}\n```\nWhile sending JSON responses correct HTTP `Content-Type: applocation/json; utf-8`\nis also set.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemantjadon%2Frespond","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemantjadon%2Frespond","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemantjadon%2Frespond/lists"}