jhiesey / stream-http

Streaming node http in the browser
MIT License
352 stars 62 forks source link

WHATWG URL support #74

Open stevenvachon opened 7 years ago

stevenvachon commented 7 years ago

was been added to http/https in Node 7.5.0

I'm working on these to help: hasurl, isurl, isomorphic-url

jhiesey commented 7 years ago

Hm, the node http documentation doesn't mention WHATWG URL yet, and the node 7.8.0 url module documentation says this is a stability 1 (experimental) API.

Is anyone actually using this? It would be nice to support eventually, but it seems a little early. Given it isn't documented, what exactly needs to change in http?

stevenvachon commented 7 years ago

Node 8.x will have a higher stability level. People will be using it very soon.


const url = new URL('http://domain');

http.get(url, function(response) {
   // not supported in stream-http
});
``
jhiesey commented 6 years ago

I will work on this soon.

jhiesey commented 6 years ago

OK, looks like this is blocked until the url module supports WHATWG URL: https://github.com/defunctzombie/node-url/issues/33