Stream: jco

Topic: http on node.js


view this post on Zulip Yoshua Wuyts (Oct 17 2023 at 16:54):

In terms of APIs to implement, do we also have to implement http on Node.js? We're currently not tracking that in the jco issue tracker, but I can create an issue for that if we want to?

view this post on Zulip Pat Hickey (Oct 17 2023 at 16:56):

asking out of ignorance/curiosity - if http is working on the web (serviceworker for inbound, fetch for outbound), is there any way to just run that without modification on node.js?

view this post on Zulip Yoshua Wuyts (Oct 17 2023 at 17:06):

Not that I'm aware of; they're fundamentally different APIs

view this post on Zulip Yoshua Wuyts (Oct 17 2023 at 17:06):

Or well, maybe fetch could actually work. But the server won't

view this post on Zulip Yoshua Wuyts (Oct 17 2023 at 17:06):

A part of the mandate of the WinterCG initiative is to create common ground between the various JavaScript targets, and make sure they can run the same workloads

view this post on Zulip Yoshua Wuyts (Oct 17 2023 at 17:07):

But somewhat unfortunately there is no public draft available yet for a common HTTP server interface

view this post on Zulip Yoshua Wuyts (Oct 17 2023 at 17:08):

(I'm assuming that folks involved may have started on private drafts since it is probably the single-most important interface - but that's just me speculating)

view this post on Zulip Yoshua Wuyts (Oct 17 2023 at 17:10):

Yoshua Wuyts said:

In terms of APIs to implement, do we also have to implement http on Node.js? We're currently not tracking that in the jco issue tracker, but I can create an issue for that if we want to?

I'm just going to create issues for this, and then we can tick off what we've already implemented

view this post on Zulip Guy Bedford (Oct 17 2023 at 17:35):

Yeah there are subtle implementation differences between Node.js fetch and browser fetch, but it might work as a shared implementation, I'm not sure. Best not to assume though.

view this post on Zulip Yoshua Wuyts (Oct 17 2023 at 17:42):

Oh yeah, I guess one difference off the top of my head will be the way cookies are handled

view this post on Zulip Yoshua Wuyts (Oct 17 2023 at 17:43):

In the browser they're persisted between sessions; in Node.js I'm pretty certain they're ephemeral

view this post on Zulip Pat Hickey (Oct 17 2023 at 17:45):

sounds good, thanks for filling me in


Last updated: Nov 22 2024 at 16:03 UTC