Closed sassman closed 1 year ago
I think it can be done with an own impl of the Respond
trait that mimics the echo-server behaviour, as shown in the examples.
https://docs.rs/wiremock/latest/wiremock/trait.Respond.html#dynamic-responses
Yes, you should be able to do it by implementing Respond
!
Thanks, works like charme.
Is there any way that I can pass
ResponseTemplate
to.respond_with
that would behave like an echo http server?So essentially responding with the very same body back that the request did contain?