Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return HTML and in general be able to set content type #74

Closed
szabgab opened this issue Dec 3, 2023 · 2 comments
Closed

Return HTML and in general be able to set content type #74

szabgab opened this issue Dec 3, 2023 · 2 comments
Labels
enhancement New feature or request STG-4 Indepth coverage of features, post public

Comments

@szabgab
Copy link
Contributor

szabgab commented Dec 3, 2023

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.

@szabgab szabgab added the enhancement New feature or request label Dec 3, 2023
@jondot
Copy link
Contributor

jondot commented Dec 4, 2023

you are correct, we should offer this, thanks!

@jondot jondot added the STG-4 Indepth coverage of features, post public label Dec 4, 2023
@jondot
Copy link
Contributor

jondot commented Dec 7, 2023

Implemented

@jondot jondot closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request STG-4 Indepth coverage of features, post public
Projects
None yet
Development

No branches or pull requests

2 participants