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
H3 can be inconvenient to work with in environments that are not Node.js based, such as cloudflare, lagon, vercel-edge etc
An alternative API toevent.node, event.request would be more natural to use.
An way to return a native Response from an event handler would be great.
Example :
defineEventHandler(event=>{console.log(event.request)//... Request objectconsole.log(event.node)//... undefinedreturnnewResponse("Hello world")// Works as intended })
Additionally, it should be possible to return a Response in node environments as well.
Additional information
Would you be willing to help implement this feature?
The content you are editing has changed. Please copy your edits and refresh the page.
Describe the feature
H3 can be inconvenient to work with in environments that are not Node.js based, such as cloudflare, lagon, vercel-edge etc
event.node
,event.request
would be more natural to use.Response
from an event handler would be great.Example :
Additionally, it should be possible to return a
Response
in node environments as well.Additional information
Tasks
readFormData
util #421event.request
getter to access web request #454The text was updated successfully, but these errors were encountered: