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
Modern JS provides types for responses and requests which some libraries built upon. An example is @auth/core to which one passes the requests and sends back the response created by it.
Currently I am trying to manufacture requests manually from the incoming request and manually copy all the headers, status information and body from the generated response though this is cumbersome and error-prone. I also tried using event.respondWith though that does not seem to work (and even then one has to create a H3Response - though it is prettier than calling all the setHeader etc functions).
This is by the way in the context of using Nuxtjs server API routes.
Additional information
Would you be willing to help implement this feature?
The text was updated successfully, but these errors were encountered:
Describe the feature
Modern JS provides types for responses and requests which some libraries built upon. An example is
@auth/core
to which one passes the requests and sends back the response created by it.Currently I am trying to manufacture requests manually from the incoming request and manually copy all the headers, status information and body from the generated response though this is cumbersome and error-prone. I also tried using
event.respondWith
though that does not seem to work (and even then one has to create aH3Response
- though it is prettier than calling all thesetHeader
etc functions).This is by the way in the context of using Nuxtjs server API routes.
Additional information
The text was updated successfully, but these errors were encountered: