{"id":26528969,"url":"https://github.com/i2bskn/overridemethod","last_synced_at":"2025-10-28T02:32:32.415Z","repository":{"id":57598640,"uuid":"86125473","full_name":"i2bskn/overridemethod","owner":"i2bskn","description":"HTTP method overriding","archived":false,"fork":false,"pushed_at":"2017-03-26T00:52:55.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T13:28:44.809Z","etag":null,"topics":["go","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/i2bskn.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":"2017-03-25T02:03:14.000Z","updated_at":"2017-03-25T23:32:04.000Z","dependencies_parsed_at":"2022-08-30T01:51:46.758Z","dependency_job_id":null,"html_url":"https://github.com/i2bskn/overridemethod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2bskn%2Foverridemethod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2bskn%2Foverridemethod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2bskn%2Foverridemethod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2bskn%2Foverridemethod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i2bskn","download_url":"https://codeload.github.com/i2bskn/overridemethod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244825656,"owners_count":20516592,"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","http"],"created_at":"2025-03-21T16:19:37.254Z","updated_at":"2025-10-28T02:32:27.384Z","avatar_url":"https://github.com/i2bskn.png","language":"Go","readme":"# overridemethod\n\n[![GoDoc](https://godoc.org/github.com/i2bskn/overridemethod?status.svg)](https://godoc.org/github.com/i2bskn/overridemethod)\n[![Build Status](https://travis-ci.org/i2bskn/overridemethod.svg?branch=master)](https://travis-ci.org/i2bskn/overridemethod)\n[![codecov](https://codecov.io/gh/i2bskn/overridemethod/branch/master/graph/badge.svg)](https://codecov.io/gh/i2bskn/overridemethod)\n\n## Dependencies\n\n- [Go](https://golang.org/) 1.7 or lator\n\nNo dependency on the third party library.\n\n## Installation\n\n```\ngo get -u github.com/i2bskn/overridemethod\n```\n\n## Usage\n\nExample for `net/http`:\n\n```Go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/i2bskn/overridemethod\"\n)\n\nfunc main() {\n\tmux := http.NewServeMux()\n\tmux.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\tfmt.Fprintf(w, \"Override %s with %s\", overridemethod.Origin(r), r.Method)\n\t})\n\tmw := overridemethod.Middleware()\n\n\tlog.Fatal(http.ListenAndServe(\":8080\", mw(mux)))\n}\n```\n\nSee also [GoDoc](https://godoc.org/github.com/i2bskn/overridemethod).\n\n## License\n\noverridemethod is available under the MIT.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi2bskn%2Foverridemethod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi2bskn%2Foverridemethod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi2bskn%2Foverridemethod/lists"}