cjstehno / ersatz

🤖 A simulated HTTP server for testing client code with configurable responses.
https://cjstehno.github.io/ersatz
Apache License 2.0
47 stars 5 forks source link

Default to Request / Response with Body #190

Open cjstehno opened 3 weeks ago

cjstehno commented 3 weeks ago

Considering the wide variety of support for bad HTTP practices, it would probably be helpful to just default the request and response objects in expectations to their *WithBody versions.

There are workarounds to support requests that have an unsupported body content, but they are a little hacky