{"id":22426643,"url":"https://github.com/theypsilon/go-httpmock","last_synced_at":"2025-10-17T07:56:26.103Z","repository":{"id":25108386,"uuid":"28529728","full_name":"theypsilon/go-httpmock","owner":"theypsilon","description":"Utility for mocking the net/http package of the Go language","archived":false,"fork":false,"pushed_at":"2014-12-27T06:26:00.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T11:30:19.732Z","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":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theypsilon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_1_0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-27T05:49:51.000Z","updated_at":"2014-12-27T06:26:00.000Z","dependencies_parsed_at":"2022-08-23T19:40:40.676Z","dependency_job_id":null,"html_url":"https://github.com/theypsilon/go-httpmock","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/theypsilon%2Fgo-httpmock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Fgo-httpmock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Fgo-httpmock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Fgo-httpmock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theypsilon","download_url":"https://codeload.github.com/theypsilon/go-httpmock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245792973,"owners_count":20672884,"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-12-05T19:22:49.818Z","updated_at":"2025-10-17T07:56:26.021Z","avatar_url":"https://github.com/theypsilon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"httpmock.go ![Build Status](https://travis-ci.org/theypsilon/go-httpmock.svg?branch=master)\n======\n\nSimple utility, for mocking http connections. Work 90% based on this gist: https://gist.github.com/jarcoal/8940980\n\n```go\n// in a gopkg.in/check.v1 test method:\nRegisterResponder(\"GET\", \"http://example.com/\", func(*http.Request) (*http.Response, error) {\n    return GetResponseWithBody(\"xin chao\"), nil\n})\n\nresponse, _ := http.Get(\"http://example.com/\")\n\nc.Assert(BodyToString(response), checker.Equals, \"xin chao\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheypsilon%2Fgo-httpmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheypsilon%2Fgo-httpmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheypsilon%2Fgo-httpmock/lists"}