Skip to content

http.RoundTripper middleware contract

Compare
Choose a tag to compare
@adamluzsi adamluzsi released this 18 May 20:43

httpspec is extended with a RoundTripperMiddleware contract.

You can verify common scenarios with your round-tripper middleware using the shared spec.
This shared contract should allow you to focus on the round-trippers business logic rather than the generic middleware behaviour.