{"id":20051763,"url":"https://github.com/golangtoolkits/go-http-proxy","last_synced_at":"2025-03-02T08:42:27.246Z","repository":{"id":65730517,"uuid":"597554641","full_name":"GolangToolKits/go-http-proxy","owner":"GolangToolKits","description":"A mockable http proxy","archived":false,"fork":false,"pushed_at":"2023-06-05T22:03:26.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T21:07:18.169Z","etag":null,"topics":["go","golang","http","http-proxy","proxy"],"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/GolangToolKits.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":"2023-02-04T22:20:59.000Z","updated_at":"2023-02-15T18:30:13.000Z","dependencies_parsed_at":"2024-06-21T08:48:10.948Z","dependency_job_id":null,"html_url":"https://github.com/GolangToolKits/go-http-proxy","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"fd3f143e502d94165c73e37fcc54ea46ce34de1a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GolangToolKits%2Fgo-http-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GolangToolKits%2Fgo-http-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GolangToolKits%2Fgo-http-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GolangToolKits%2Fgo-http-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GolangToolKits","download_url":"https://codeload.github.com/GolangToolKits/go-http-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241482035,"owners_count":19969847,"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","golang","http","http-proxy","proxy"],"created_at":"2024-11-13T12:05:46.920Z","updated_at":"2025-03-02T08:42:27.203Z","avatar_url":"https://github.com/GolangToolKits.png","language":"Go","readme":"# go-http-proxy\nA mockable http proxy\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/GolangToolKits/go-http-proxy)](https://goreportcard.com/report/github.com/GolangToolKits/go-http-proxy)\n\n### Use Info\n\n```go\n\ntype Gresp struct{\n    Status bool\n    Message string\n}\nreq, rErr := http.NewRequest(\"GET\", \"www.google.com/test\", nil)\n\nvar resp Gresp\npx := GoProxy{}\np := px.New()\n\ncallSuccess, httpStatusCode := p.Do(req, \u0026resp)\n// callSuccess indicates success of call\n// httpStatusCode is status of the call\n// resp contains the response---  make sure to pass a pointer\n\n\n```\n\n\n\n### Use Info Mock\n\n```go\n\ntype Gresp struct{\n    Status bool\n    Message string\n}\nreq, rErr := http.NewRequest(\"GET\", \"www.google.com/test\", nil)\n\nvar w1 http.Response\n\t\nw1.Body = ioutil.NopCloser(bytes.NewBufferString(`{\"Status\":true, \"Message\":\"All good\"}`))\n\nvar resp Gresp\npx := MockGoProxy{}\npx.MockDoSuccess1 = true\npx.MockRespCode = 200\npx.MockResp = \u0026w1\n\np := px.New()\n\ncallSuccess, httpStatusCode := p.Do(req, \u0026resp)\n// callSuccess indicates success of call\n// httpStatusCode is status of the call\n// resp contains the response---  make sure to pass a pointer\n\n\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolangtoolkits%2Fgo-http-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgolangtoolkits%2Fgo-http-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolangtoolkits%2Fgo-http-proxy/lists"}