{"id":16834934,"url":"https://github.com/dchest/throttled-webrate","last_synced_at":"2025-10-28T12:40:17.337Z","repository":{"id":30443045,"uuid":"33996443","full_name":"dchest/throttled-webrate","owner":"dchest","description":"Another RateLimit for throttled","archived":false,"fork":false,"pushed_at":"2015-10-22T10:35:32.000Z","size":138,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-03T14:44:36.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dchest.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-15T13:47:24.000Z","updated_at":"2019-01-09T05:08:46.000Z","dependencies_parsed_at":"2022-07-12T09:23:39.766Z","dependency_job_id":null,"html_url":"https://github.com/dchest/throttled-webrate","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/dchest%2Fthrottled-webrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Fthrottled-webrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Fthrottled-webrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Fthrottled-webrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dchest","download_url":"https://codeload.github.com/dchest/throttled-webrate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239526532,"owners_count":19653558,"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":[],"created_at":"2024-10-13T12:08:26.063Z","updated_at":"2025-10-28T12:40:12.298Z","avatar_url":"https://github.com/dchest.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"webrate\n-------\n\n\nPackage webrate contains a modified RateLimit function for\nhttp://github.com/PuerkitoBio/throttled, which rate limits only specified\nHTTP methods and doesn't add headers to response.\n\n\nEXAMPLE\n\n\timport (\n\t\t\"net/http\"\n\n\t\t\"github.com/PuerkitoBio/throttled\"\n\t\t\"github.com/PuerkitoBio/throttled/store\"\n\t\t\"github.com/dchest/throttled-webrate\"\n\t)\n\n\tfunc main() {\n\n\t\t// ...\n\n\t\tth := webrate.RateLimit(\n\t\t\tthrottled.PerMin(30),\n\t\t\t[]string{\"POST\"},\n\t\t\twebrate.VaryByPathAndIP(\"X-Real-IP\"),\n\t\t\tstore.NewMemStore(1000))\n\t\t\n\t\thttp.Handle(\"/login\", th.Throttle(loginHandler))\n\n\t\t// ...\n\t}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdchest%2Fthrottled-webrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdchest%2Fthrottled-webrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdchest%2Fthrottled-webrate/lists"}