alexliesenfeld / httpmock

HTTP mocking library for Rust.
MIT License
435 stars 40 forks source link

feat: Add MockServer reset function #100

Closed dax closed 4 months ago

dax commented 4 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 4 months ago

Thank you for this PR @dax!