HTML ContentType with charset? #942
-
I can construct an HTTP header with the content type like this:
That results in HTTP header "Content-Type: text/html". |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can always fallback to creating a |
Beta Was this translation helpful? Give feedback.
-
There doesn't seem to be a way to set the charset through the |
Beta Was this translation helpful? Give feedback.
You can always fallback to creating a
HeaderMap
manually. See https://docs.rs/axum/latest/axum/response/index.html#building-responses