Content type HTML #534
Replies: 2 comments
-
I can get https://elysiajs.com/integrations/cheat-sheet.html#header-and-status-code |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is there a way guys to set JSON header globally?? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm quite confused about content types: https://elysiajs.com/life-cycle/parse.html#explicit-content-type
Seems we can only return some, and a glaringly missing one is
text/html
. Can I just settype
to"text/html; charset=utf8"
?I also tried in headers but Typescript doesn't like it:
type
to html doesn't work, thecontent-type
becomes"text/plain;charset=utf-8"
Beta Was this translation helpful? Give feedback.
All reactions