Hyper 1.0. How to send string? #2322
-
I'm new to rust and can't figure out what is an issue with hyper 1.0 when sending string response, previous version worked fine:
error:
|
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Nov 15, 2023
Replies: 1 comment
-
axum does not yet support hyper 1.0. I recommend you follow #1325 but otherwise stick with hyper 0.14 for now. The specific issue most likely is that hyper 1.0 uses http 1.0 but axum expects http 0.2. So the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ziimakc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axum does not yet support hyper 1.0. I recommend you follow #1325 but otherwise stick with hyper 0.14 for now.
The specific issue most likely is that hyper 1.0 uses http 1.0 but axum expects http 0.2. So the
StatusCode
you're getting is the wrong version.