TrueLayer / reqwest-middleware

Wrapper around reqwest to allow for client middleware chains.
Apache License 2.0
257 stars 78 forks source link

[BOT-272] ClientBuilder extend convenience function #149

Closed stefandanaita closed 5 months ago

stefandanaita commented 5 months ago

This pull request adds a new extend function to the ClientBuilder which takes a ClientWithMiddleware instance and appends its middleware and initialiser stacks to the ClientBuilder instance it's being called on.

This is very convenient when reqwest_middleware is being used on libraries that accept a ClientWithMiddleware, but need to append their own middlewares to the client that's being passed down from the app.

swarmia[bot] commented 5 months ago

✅  Linked to Story BOT-272 · reqwest-middleware::ClientBuilder extend function
➡️  Part of Epic BOT-267 · Houston AMQP