{"id":28483246,"url":"https://github.com/smoothprogrammer/httpstatcheck","last_synced_at":"2025-07-08T20:32:53.259Z","repository":{"id":251877236,"uuid":"838711692","full_name":"smoothprogrammer/httpstatcheck","owner":"smoothprogrammer","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-28T07:18:10.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T21:44:51.203Z","etag":null,"topics":[],"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/smoothprogrammer.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":"2024-08-06T07:36:53.000Z","updated_at":"2024-08-28T07:15:49.000Z","dependencies_parsed_at":"2024-11-09T12:13:03.769Z","dependency_job_id":"63eb0806-7719-427f-a2be-0313f4c1ffa7","html_url":"https://github.com/smoothprogrammer/httpstatcheck","commit_stats":null,"previous_names":["minizilla/httpstatcheck","smoothprogrammer/httpstatcheck"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/smoothprogrammer/httpstatcheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoothprogrammer%2Fhttpstatcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoothprogrammer%2Fhttpstatcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoothprogrammer%2Fhttpstatcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoothprogrammer%2Fhttpstatcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smoothprogrammer","download_url":"https://codeload.github.com/smoothprogrammer/httpstatcheck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoothprogrammer%2Fhttpstatcheck/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262513622,"owners_count":23322661,"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":"2025-06-07T21:38:05.100Z","updated_at":"2025-06-28T23:32:25.880Z","avatar_url":"https://github.com/smoothprogrammer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httpstatcheck [![Go Reference](https://pkg.go.dev/badge/github.com/minizilla/httpstatcheck.svg)](https://pkg.go.dev/github.com/minizilla/httpstatcheck) [![main](https://github.com/minizilla/httpstatcheck/actions/workflows/main.yaml/badge.svg)](https://github.com/minizilla/httpstatcheck/actions/workflows/main.yaml)\n\nPackage httpstatcheck provides wildcard HTTP Status Code checking, e.g. 200 == 2XX.\n\n## Example\n\n```go\nvar checker httpstatcheck.Checker // The zero value for Checker is an empty rule checker ready to use.\nchecker.Insert(\"2XX\", \"400\", \"500\", \"3X1\")\nchecker.Check(200) // true\nchecker.Check(201) // true\nchecker.Check(400) // true\nchecker.Check(401) // false\nchecker.Check(500) // true\nchecker.Check(501) // false\nchecker.Check(300) // true 3X1 will be considered as 3XX\n```\n\n## Benchmark with regex\n\n```sh\n$ go test -bench=.\ngoos: linux\ngoarch: arm64\npkg: github.com/minizilla/httpstatcheck\nBenchmarkHTTPStatCheck-4   \t13465224\t        84.36 ns/op\nBenchmarkRegex-4           \t10013356\t       120.2 ns/op\nPASS\nok  \tgithub.com/minizilla/httpstatcheck\t2.559s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoothprogrammer%2Fhttpstatcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmoothprogrammer%2Fhttpstatcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoothprogrammer%2Fhttpstatcheck/lists"}