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 only found format::text and format::json. I could not find a built-in way to send HTML pages (with the content type text/html. I figured out a way using axum that I included in this article, but I guess there is an easier way to do this.
Is there an easier way to send HTML? If not, I'd like to ask for format::html or some other way to set the content-type.
The text was updated successfully, but these errors were encountered:
I only found
format::text
andformat::json
. I could not find a built-in way to send HTML pages (with the content typetext/html
. I figured out a way using axum that I included in this article, but I guess there is an easier way to do this.Is there an easier way to send HTML? If not, I'd like to ask for
format::html
or some other way to set the content-type.The text was updated successfully, but these errors were encountered: