{"id":31345830,"url":"https://github.com/httpmock/httpmock","last_synced_at":"2025-09-26T08:08:02.637Z","repository":{"id":40139298,"uuid":"207288123","full_name":"httpmock/httpmock","owner":"httpmock","description":"HTTP mocking library for Rust","archived":false,"fork":false,"pushed_at":"2025-09-25T11:27:07.000Z","size":4030,"stargazers_count":609,"open_issues_count":25,"forks_count":52,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-25T11:36:37.382Z","etag":null,"topics":["http-mocking","mock","mock-server","rust","test","test-framework"],"latest_commit_sha":null,"homepage":"https://httpmock.rs","language":"Rust","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/httpmock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"alexliesenfeld"}},"created_at":"2019-09-09T10:55:45.000Z","updated_at":"2025-09-25T11:27:12.000Z","dependencies_parsed_at":"2023-11-19T06:26:43.730Z","dependency_job_id":"d69180bf-027d-4981-8031-d6e3001e1844","html_url":"https://github.com/httpmock/httpmock","commit_stats":{"total_commits":509,"total_committers":20,"mean_commits":25.45,"dds":0.4047151277013753,"last_synced_commit":"d87ab088fff6c5f2e2aacf8083874f357111b1cd"},"previous_names":["httpmock/httpmock"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/httpmock/httpmock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpmock%2Fhttpmock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpmock%2Fhttpmock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpmock%2Fhttpmock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpmock%2Fhttpmock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httpmock","download_url":"https://codeload.github.com/httpmock/httpmock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpmock%2Fhttpmock/sbom","scorecard":{"id":182079,"data":{"date":"2025-08-11","repo":{"name":"github.com/alexliesenfeld/httpmock","commit":"136dbdec896a36ba3fcf2ceb290cf1f225fb8c67"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/coverage-master.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/deploy-docs.yml:13","Warn: no topLevel permission defined: .github/workflows/docker-release.yml:1","Warn: no topLevel permission defined: .github/workflows/full-build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 2/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"9 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:63: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:103: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:105: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/coverage-master.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/coverage-master.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/coverage-master.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/coverage-master.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy-docs.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/deploy-docs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy-docs.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/deploy-docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy-docs.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/deploy-docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/docker-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-release.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/docker-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-release.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/docker-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-release.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/docker-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/full-build.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/full-build.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/full-build.yml:94: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:98: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:104: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:109: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:114: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/full-build.yml:122: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:124: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/full-build.yml:130: update your workflow using https://app.stepsecurity.io/secureworkflow/alexliesenfeld/httpmock/full-build.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:2","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  31 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/build.yml:100"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-gprj-6m2f-j9hx","Warn: Project is vulnerable to: GHSA-m85w-3h95-hcf9","Warn: Project is vulnerable to: GHSA-c4pw-33h3-35xw","Warn: Project is vulnerable to: GHSA-49w6-73cw-chjr","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-f6v4-cf5j-vf3w","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T19:02:39.440Z","repository_id":40139298,"created_at":"2025-08-16T19:02:39.440Z","updated_at":"2025-08-16T19:02:39.440Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277043187,"owners_count":25750509,"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-09-26T02:00:09.010Z","response_time":78,"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":["http-mocking","mock","mock-server","rust","test","test-framework"],"created_at":"2025-09-26T08:02:51.318Z","updated_at":"2025-09-26T08:08:02.630Z","avatar_url":"https://github.com/httpmock.png","language":"Rust","readme":"\u003cdiv align=\"center\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/httpmock/httpmock/master/assets/logo-dark.svg\" /\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/httpmock/httpmock/master/assets/logo-light.svg\" /\u003e\n      \u003cimg width=\"275\" src=\"https://raw.githubusercontent.com/httpmock/httpmock/master/assets/logo-pink.svg\" alt=\"httpmock\" /\u003e\n    \u003c/picture\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003eSimple yet powerful HTTP mocking library for Rust\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Build](https://github.com/httpmock/httpmock/actions/workflows/build.yml/badge.svg)](https://github.com/httpmock/httpmock/actions/workflows/build.yml)\n[![crates.io](https://img.shields.io/crates/d/httpmock.svg)](https://crates.io/crates/httpmock)\n[![Mentioned in Awesome](https://raw.githubusercontent.com/alexliesenfeld/docs-assets/refs/heads/main/ab.svg)](https://github.com/rust-unofficial/awesome-rust#testing)\n[![Rust](https://img.shields.io/badge/rust-1.82%2B-blue.svg?maxAge=3600)](https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1700-2023-06-01)\n\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://httpmock.rs\"\u003eWebsite\u003c/a\u003e\n    ·\n    \u003ca href=\"https://docs.rs/httpmock/\"\u003eAPI Reference\u003c/a\u003e\n    ·\n    \u003ca href=\"https://crates.io/crates/httpmock\"\u003eCrate\u003c/a\u003e\n    ·\n    \u003ca href=\"https://discord.com/invite/7QzTfBUe\"\u003eChat on Discord\u003c/a\u003e\n    ·\n \u003ca href=\"https://github.com/httpmock/httpmock/discussions\"\u003eForum\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/httpmock/httpmock/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/httpmock/httpmock/issues\"\u003eRequest Feature\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/sponsors/httpmock\"\u003eSupport this Project\u003c/a\u003e\n\u003c/p\u003e\n\n\n## Features\n\n* Mocks responses from HTTP services\n* Simple, expressive, fluent API.\n* Many built-in helpers for easy request matching ([Regex](https://docs.rs/regex/), JSON, [serde](https://crates.io/crates/serde), cookies, and more).\n* Record and Playback third-party services\n* Forward and Proxy Mode\n* HTTPS support\n* Fault and network delay simulation.\n* Custom request matchers.\n* Standalone mode with an accompanying [Docker image](https://hub.docker.com/r/httpmock/httpmock).\n* Helpful error messages\n* [Advanced verification and debugging support](https://alexliesenfeld.github.io/posts/mocking-http--services-in-rust/#creating-mocks) (including diff generation between actual and expected HTTP request values)\n* Parallel test execution.\n* Fully asynchronous core with synchronous and asynchronous APIs.\n* Support for [mock configuration using YAML files](https://github.com/httpmock/httpmock/tree/master#file-based-mock-specification).\n\n## Getting Started\n\nAdd `httpmock` to `Cargo.toml`:\n\n```toml\n[dev-dependencies]\nhttpmock = \"0.8.0\"\n```\n\nYou can then use `httpmock` as follows:\n\n```rust\nuse httpmock::prelude::*;\n\n// Start a lightweight mock server.\nlet server = MockServer::start();\n\n// Create a mock on the server.\nlet mock = server.mock(|when, then| {\n    when.method(GET)\n        .path(\"/translate\")\n        .query_param(\"word\", \"hello\");\n    then.status(200)\n        .header(\"content-type\", \"text/html; charset=UTF-8\")\n        .body(\"hola\");\n});\n\n// Send an HTTP request to the mock server. This simulates your code.\nlet response = isahc::get(server.url(\"/translate?word=hello\")).unwrap();\n\n// Ensure the specified mock was called exactly one time (or fail with a\n// detailed error description).\nmock.assert();\n\n// Ensure the mock server did respond as specified.\nassert_eq!(response.status(), 200);\n```\n\nThe above example will spin up a lightweight HTTP mock server and configure it to respond to all `GET` requests\nto path `/translate` with query parameter `word=hello`. The corresponding HTTP response will contain the text body\n`hola`.\n\nWhen the specified expectations do not match the received request, `mock.assert()` fails the test with a detailed error description, \nincluding a diff that shows the differences between the expected and actual HTTP requests. Example:\n\n```bash\n0 of 1 expected requests matched the mock specification.\nHere is a comparison with the most similar unmatched request (request number 1):\n\n------------------------------------------------------------\n1 : Query Parameter Mismatch\n------------------------------------------------------------\nExpected:\n    key    [equals]  word\n    value  [equals]  hello-rustaceans\n\nReceived (most similar query parameter):\n    word=hello\n\nAll received query parameter values:\n    1. word=hello\n\nMatcher:  query_param\nDocs:     https://docs.rs/httpmock/0.8.0/httpmock/struct.When.html#method.query_param\n```\n\n# Usage\n\nSee the [official website](http://httpmock.rs) for detailed API documentation.\n\n## Examples\n\nYou can find examples in the\n[`httpmock` test directory](https://github.com/httpmock/httpmock/blob/master/tests/).\nThe [official website](http://httpmock.rs) and [reference docs](https://docs.rs/httpmock/) also contain _**a lot**_ of examples. \n\n## License\n\n`httpmock` is free software: you can redistribute it and/or modify it under the terms of the MIT Public License.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied\nwarranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MIT Public License for more details.\n","funding_links":["https://github.com/sponsors/alexliesenfeld","https://github.com/sponsors/httpmock"],"categories":["Development tools","Rust"],"sub_categories":["Testing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpmock%2Fhttpmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttpmock%2Fhttpmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpmock%2Fhttpmock/lists"}