http-rs / vcr-cassette

Serializer and deserializer for the VCR Cassette format
Apache License 2.0
14 stars 2 forks source link

Add quality-of-life improvements for bodies #4

Open mpalmer opened 5 months ago

mpalmer commented 5 months ago

On the request side, you can now match the request body against one or more substrings and regular expressions, which makes life easier for those of us who need to deal with request bodies that have non-deterministic elements in them (like nonces).

On the response side. you can now write your JSON response bodies as JSON, which is significantly easier than having to escape eleventy-billion quotes, and match up braces by eye.

To avoid any bloat or unpleasant interactions with existing code, all the new features are gated behind, well, features.