http.RoundTripper middleware contract
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.