{"id":29572697,"url":"https://github.com/accelbyte/http-test-caller","last_synced_at":"2026-06-17T16:36:32.957Z","repository":{"id":96252402,"uuid":"149251081","full_name":"AccelByte/http-test-caller","owner":"AccelByte","description":"Go wrapper for testing HTTP handler","archived":false,"fork":false,"pushed_at":"2018-09-18T08:21:14.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T09:10:56.538Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AccelByte.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":"2018-09-18T08:04:37.000Z","updated_at":"2018-10-08T07:01:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"235b6857-8a88-4d9c-931b-0ca57a31d453","html_url":"https://github.com/AccelByte/http-test-caller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AccelByte/http-test-caller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fhttp-test-caller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fhttp-test-caller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fhttp-test-caller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fhttp-test-caller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AccelByte","download_url":"https://codeload.github.com/AccelByte/http-test-caller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fhttp-test-caller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281068936,"owners_count":26438554,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07-19T05:10:54.220Z","updated_at":"2025-10-26T06:37:41.671Z","avatar_url":"https://github.com/AccelByte.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Test Caller\n\nThis project is a wrapper for testing HTTP handler, it will pass the request to the handler and record the response using `httptest.ResponseRecorder`. If the response type is set, it will try to unmarshal the response body to the type.\n\n## Usage\n\n### Importing\n\n```go\nimport \"github.com/AccelByte/http-test-caller\"\n```\n\n### Make a request\n\n```go\nresp, body, err :=\n    caller.Call(handler).\n        To(gorequest.New().    // using gorequest to construct the request\n            Post(\"/example\").  // we are testing handler locally, doesn't need full URL\n            Type(restful.MIME_JSON).\n            SendString(`{\"Example\": \"test\"}`).\n            MakeRequest()).\n        Read(\u0026models.ExampleResponse{}).\n        Execute()\n    \n// we can assert the resp.Code \u0026 unmarshaled body\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccelbyte%2Fhttp-test-caller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccelbyte%2Fhttp-test-caller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccelbyte%2Fhttp-test-caller/lists"}