alexliesenfeld / httpmock

HTTP mocking library for Rust
https://httpmock.rs
MIT License
488 stars 45 forks source link

feat: Add MockServer reset function #100

Closed dax closed 8 months ago

dax commented 9 months ago

Sometimes it can be useful to change the behavior of the MockServer after some Mocks have already been setup. This PR adds a reset() function to clear the existing Mocks and their recorded calls history.

alexliesenfeld commented 8 months ago

Thank you for this PR @dax!