Skip to content

Does axum provide built-in client side library? #2773

Answered by mladedav
McDic asked this question in Q&A
Discussion options

You must be logged in to vote

axum is for building HTTP servers, it does not provide a client.

I think a closer equivalent to aiohttp would be hyper on which both axum and reqwest is built.

It's safe to use reqwest inside axum handlers, just note that some types may have the same name but actually be different (e.g. if you wanted to take Response from reqwest and return that from an axum handler).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@McDic
Comment options

Answer selected by jplatte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants