You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a Loco project, which is built on top of Axum, which in turn is built on Tower and tower-http. My application primarily deals with JSON-based HTTP requests and responses.
I need a general-purpose HTTP client for making outbound API requests, and I’m considering whether to:
Use a standalone HTTP client like reqwest, which is widely used and provides built-in JSON handling.
Leverage existing Tower-based components such as hyper::Client with tower and tower-http middleware (timeouts, retries, logging, etc.) for better integration with Loco/Axum.
Given that Loco/Axum is already built on Tower, would it be better to stay within the Tower ecosystem by using Hyper + Tower middleware for better compatibility? Or would reqwest still be the better choice for a JSON-heavy application?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a Loco project, which is built on top of Axum, which in turn is built on Tower and tower-http. My application primarily deals with JSON-based HTTP requests and responses.
I need a general-purpose HTTP client for making outbound API requests, and I’m considering whether to:
reqwest, which is widely used and provides built-in JSON handling.hyper::Clientwithtowerandtower-httpmiddleware (timeouts, retries, logging, etc.) for better integration with Loco/Axum.Given that Loco/Axum is already built on Tower, would it be better to stay within the Tower ecosystem by using Hyper + Tower middleware for better compatibility? Or would
reqweststill be the better choice for a JSON-heavy application?Beta Was this translation helpful? Give feedback.
All reactions