{"id":23181142,"url":"https://github.com/joeshaw/httpmethodoverride","last_synced_at":"2025-10-11T07:34:20.891Z","repository":{"id":19923438,"uuid":"23189745","full_name":"joeshaw/httpmethodoverride","owner":"joeshaw","description":"Go package to override the HTTP method with value in `_method` URL query parameter","archived":false,"fork":false,"pushed_at":"2014-08-21T14:18:30.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-01T05:25:16.139Z","etag":null,"topics":["golang","http"],"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/joeshaw.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":"2014-08-21T14:16:45.000Z","updated_at":"2025-08-01T17:58:15.000Z","dependencies_parsed_at":"2022-08-17T15:45:42.528Z","dependency_job_id":null,"html_url":"https://github.com/joeshaw/httpmethodoverride","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joeshaw/httpmethodoverride","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fhttpmethodoverride","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fhttpmethodoverride/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fhttpmethodoverride/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fhttpmethodoverride/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeshaw","download_url":"https://codeload.github.com/joeshaw/httpmethodoverride/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fhttpmethodoverride/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006622,"owners_count":26084131,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","http"],"created_at":"2024-12-18T08:14:40.986Z","updated_at":"2025-10-11T07:34:20.865Z","avatar_url":"https://github.com/joeshaw.png","language":"Go","readme":"# httpmethodoverride #\n\n`httpmethodoverride` is a Go package that provides an `http.Handle`\nwrapper that allows clients to override the provided HTTP method with\nthe value within a `_method` query parameter.\n\nSome situations in which you might want this:\n\n  * Your client stack places silly restrictions on your use, like\n    preventing a body in `DELETE` requests.\n\n  * You are in a browser and get redirected from a `POST` to a `GET`\n    but you still want to hit a `POST` API.\n\nIf you use this with a router that does method-based routing, as long\nas you wrap the toplevel router/muxer in\n`httpmethodoverride.Handler()` things will work exactly as if the\nactual request were made with the desired HTTP method.\n\n## API ##\n\n```go\nmux := http.NewServeMux()\nmux.Handle(\"/\", http.HandlerFunc(func w http.ResponseWriter, r *http.Request) {\n    w.Write([]byte(r.Method))\n})\n\nhttp.ListenAndServe(\":8000\", httpmethodoverride.Handler(mux))\n```\n\nThat's it.  But it's also\n[on godoc](http://godoc.org/github.com/joeshaw/httpmethodoverride).\n\n```\n$ curl http://localhost:8080/\n\nGET\n```\n\n```\n$ curl http://localhost:8080/?_method=POST\n\nPOST\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeshaw%2Fhttpmethodoverride","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeshaw%2Fhttpmethodoverride","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeshaw%2Fhttpmethodoverride/lists"}