node:http ( make request and response ) browser compatible #46879
PodaruDragos
started this conversation in
Ideas
Replies: 1 comment
-
I like how CloudFlare handled this, with http servers using W3C's service worker syntax, maybe the http[s] module[s] could also implement a service worker like syntax and handling for this? |
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
-
Hello guys ,
Firstly thanks for adding more "browser-like" apis to
node
itself 👍 ( also features like native watch and test. I really like where thenode
ecosystem is heading 👍 ) .This is mostly a question rather than an idea.
I understand this is clearly breaking, but aligning the
req: Request, res: Response
with the browser versions will allow us to unify the experience including in (deno
,bun
) and will potentially unlock great features natively likeresponse.json()
request.formData()
I did not find any indications online if this is a thing worth considering so here goes:
Are there any plans to consider adding this ?
Beta Was this translation helpful? Give feedback.
All reactions