{"id":37173675,"url":"https://github.com/protogodev/httptest","last_synced_at":"2026-01-14T20:17:56.162Z","repository":{"id":57706873,"uuid":"502375979","full_name":"protogodev/httptest","owner":"protogodev","description":"HTTP testing made easy for layered Web applications in Go.","archived":false,"fork":false,"pushed_at":"2022-06-13T09:40:34.000Z","size":53,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T16:56:49.042Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/protogodev/httptest","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/protogodev.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}},"created_at":"2022-06-11T14:50:48.000Z","updated_at":"2022-06-12T16:23:31.000Z","dependencies_parsed_at":"2022-09-26T21:20:31.779Z","dependency_job_id":null,"html_url":"https://github.com/protogodev/httptest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/protogodev/httptest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protogodev%2Fhttptest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protogodev%2Fhttptest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protogodev%2Fhttptest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protogodev%2Fhttptest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/protogodev","download_url":"https://codeload.github.com/protogodev/httptest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protogodev%2Fhttptest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-14T20:17:55.437Z","updated_at":"2026-01-14T20:17:56.155Z","avatar_url":"https://github.com/protogodev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httptest\n\nHTTP testing made easy for layered Web applications in Go.\n\n\n## Layered Web Applications\n\nNon-trivial applications should be [layered][1].\n\n![layered-app](layered-app.png)\n\nFor layered Web applications:\n\n- HTTP Server/Client should be separated from Service (i.e. the business rules)\n- HTTP Server should call an interface implemented by Service\n- HTTP Client should implement an interface defined in Service\n\n\n## Installation\n\nMake a custom build of [protogo](https://github.com/protogodev/protogo):\n\n```bash\n$ protogo build --plugin=github.com/protogodev/httptest\n```\n\nOr build from a local fork:\n\n```bash\n$ protogo build --plugin=github.com/protogodev/httptest=../my-fork\n```\n\n\u003cdetails open\u003e\n  \u003csummary\u003e Usage \u003c/summary\u003e\n\n```bash\n$ protogo httptest -h\nUsage: protogo httptest --mode=STRING --spec=STRING \u003csource-file\u003e \u003cinterface-name\u003e\n\nArguments:\n  \u003csource-file\u003e       source-file\n  \u003cinterface-name\u003e    interface-name\n\nFlags:\n  -h, --help           Show context-sensitive help.\n\n      --mode=STRING    generation mode (server or client)\n      --spec=STRING    the test specification in YAML\n      --out=STRING     output filename (default \"./\u003csrcPkgName\u003e_\u003cmode\u003e_test.go\")\n      --fmt            whether to make the test code formatted\n```\n\u003c/details\u003e\n\n\n## Examples\n\nSee [examples/usersvc](examples/usersvc).\n\n\n## Documentation\n\nCheck out the [Godoc][2].\n\n\n## License\n\n[MIT](LICENSE)\n\n\n[1]: https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html\n[2]: https://pkg.go.dev/github.com/protogodev/httptest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotogodev%2Fhttptest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotogodev%2Fhttptest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotogodev%2Fhttptest/lists"}