{"id":15152497,"url":"https://github.com/ndolestudio/httpmock","last_synced_at":"2025-08-17T08:04:10.880Z","repository":{"id":276601279,"uuid":"883909813","full_name":"NdoleStudio/httpmock","owner":"NdoleStudio","description":"HTTP Mock Server","archived":false,"fork":false,"pushed_at":"2025-08-06T08:01:16.000Z","size":1179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T10:06:01.781Z","etag":null,"topics":["httpmock","mock-server"],"latest_commit_sha":null,"homepage":"https://cloud.httpmock.dev","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NdoleStudio.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,"zenodo":null}},"created_at":"2024-11-05T19:41:20.000Z","updated_at":"2025-08-06T08:01:14.000Z","dependencies_parsed_at":"2025-02-09T10:33:51.162Z","dependency_job_id":"2b670971-c94a-4b67-96de-bb9d151a1e86","html_url":"https://github.com/NdoleStudio/httpmock","commit_stats":null,"previous_names":["ndolestudio/httpmock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NdoleStudio/httpmock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fhttpmock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fhttpmock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fhttpmock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fhttpmock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NdoleStudio","download_url":"https://codeload.github.com/NdoleStudio/httpmock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fhttpmock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270820793,"owners_count":24651534,"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-08-17T02:00:09.016Z","response_time":129,"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":["httpmock","mock-server"],"created_at":"2024-09-26T16:02:46.834Z","updated_at":"2025-08-17T08:04:10.860Z","avatar_url":"https://github.com/NdoleStudio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httpmock\n\n[![Build](https://github.com/NdoleStudio/httpmock/actions/workflows/ci.yml/badge.svg)](https://github.com/NdoleStudio/httpmock/actions/workflows/ci.yml)\n[![GitHub contributors](https://img.shields.io/github/contributors/NdoleStudio/httpmock)](https://github.com/NdoleStudio/httpmock/graphs/contributors)\n[![GitHub license](https://img.shields.io/github/license/NdoleStudio/httpmock?color=brightgreen)](https://github.com/NdoleStudio/httpmock/blob/master/LICENSE)\n[![Docker Pulls](https://img.shields.io/docker/pulls/ndolestudio/httpmock)](https://hub.docker.com/r/ndolestudio/httpmock)\n[![Netlify Status](https://api.netlify.com/api/v1/badges/6a751c80-ac38-4fa0-a470-3d2a69f98dfc/deploy-status)](https://app.netlify.com/sites/httpmock/deploys)\n\nThis is a mock http server which can be used to test HTTP requests and responses when building an HTTP client.\nYou can also use it to mock a backend API in your frontend app e.g in in situations where you're still waiting for the\nbackend API to be ready.\n\n## Server\n\nYou can use the mock server for free at httpmock.dev. The server will return the data which you specify using custom http request headers.\nThe server will use these headers to generate the response to your http request.\n\n- `response-body`: This can any string which will be returned as the response body by the server\n- `response-headers`: This should be a JSON array of headers that will be returned by the server for the request\n- `response-status`: This is the HTTP status code of the response e.g `500`, `200`, `404`\n- `response-delay`: This is the time in milliseconds that the server will wait before returning the response e.g `1000` for 1 second. The max delay you can set is 10 seconds. If you provide a larger delay, it will capped at 10 seconds.\n\n```bash\ncurl -X GET https://httpmock.dev/server \\\n  -H 'response-body: {\"id\": 12334, \"name\": \"e.g John Doe\"}' \\\n  -H 'response-headers: [{\"Content-Type\":\"application/json\"}]' \\\n  -H 'response-status: 200'\n```\n\nor this is an example with javascript\n\n```js\nfetch(\"https://httpmock.dev/server\", {\n  headers: {\n    \"response-body\": '{\"id\": 12334, \"name\": \"John Doe\"}',\n    \"response-headers\":\n      '[{\"Content-Type\":\"application/json\"}, {\"x-request-id\":\"dea576ed-ba18-4dd3-baa7-7c865c14b444\"}]',\n    \"response-status\": 200,\n    \"response-delay\": 1000,\n  },\n  method: \"GET\",\n});\n```\n\n## Credits\n\n- Color Palette: https://coolors.co/palette/606c38-283618-fefae0-dda15e-bc6c25\n- Icon: https://www.svgrepo.com/svg/361904/json-ld\n\n## License\n\nThis project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fhttpmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndolestudio%2Fhttpmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fhttpmock/lists"}