N
Nuxtβ€’2y ago
roga

What is the `type` in H3's `send()` method?

The Nuxt.com documentation doesn't even mention send() if you search it. The jsdocs.io docs don't have any information on what "type" is for. What on earth is this property for and how am I supposed to use it? πŸ€·β€β™‚οΈ
jsDocs.io
[email protected] - jsDocs.io
Documentation for npm package [email protected] - jsDocs.io
No description
1 Reply
Cue
Cueβ€’2y ago
Sets the default content-type header when one is absent. It's mostly used internally. You'll rarely need it since h3 will do its best to infer the content type from your event handler. I can't imagine why dependency documentation would need to be mentioned by Nuxt.
Want results from more Discord servers?
Add your server