alexliesenfeld / httpmock

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

Way to print which `Mock`s are registered to a `MockServer` #92

Open tgross35 opened 8 months ago

tgross35 commented 8 months ago

It would be nice to have a way to see e.g. what URLs are matched or what the rules are. Part of this could just be a Debug impl on Mock that prints the fields of RequestRequirements that are Some in a nice way.

Maybe MockServer could have a fn (&self) -> impl Iterator<Item=&Mock> somehow? I am less sure how those are stored internally.