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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 settypeto"text/html; charset=utf8"?I also tried in headers but Typescript doesn't like it:
typeto html doesn't work, thecontent-typebecomes"text/plain;charset=utf-8"Beta Was this translation helpful? Give feedback.
All reactions