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
{{ message }}
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.
As of right now, there exists a wonderful HTTP module, which interweaves libuv, the http_parser, v8 and JavaScript into a perfect request and server suite, complete with all the features you could ask for.
Next to that, there is an HTTPS module, with an inherited API that throws OpenSSL onto the network stack and calls it a new module. This sort of oddly explicit inheritance isn't just weird in thought but it also causes side effects, which may include:
Using https.request() on an HTTP link (and vice versa), only to get an error for a rather supported action: "Error: Protocol "http:" not supported. Expected "https:"."
Awkward handling of both protocols and both modules to complete the same goal, as neither module can do what the other does
Incomplete documentation that only shows half of what the module has to offer (or should I say, another module)
And so, my proposal: that we eventually merge the HTTPS module completely into the current HTTP module, allowing:
HTTPS requests to occur when OpenSSL is present, otherwise, throw error (like current behavior)
HTTPS server to be created when given proper TLS parameters (ref io.js#1101)
❤️
The text was updated successfully, but these errors were encountered:
As of right now, there exists a wonderful HTTP module, which interweaves libuv, the http_parser, v8 and JavaScript into a perfect request and server suite, complete with all the features you could ask for.
Next to that, there is an HTTPS module, with an inherited API that throws OpenSSL onto the network stack and calls it a new module. This sort of oddly explicit inheritance isn't just weird in thought but it also causes side effects, which may include:
https.request()
on an HTTP link (and vice versa), only to get an error for a rather supported action:"Error: Protocol "http:" not supported. Expected "https:"."
And so, my proposal: that we eventually merge the HTTPS module completely into the current HTTP module, allowing:
❤️
The text was updated successfully, but these errors were encountered: