-
Notifications
You must be signed in to change notification settings - Fork 2k
Confused about what the ssl
option does
#563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@glasser see here and scroll to the options that are passed in. A request can take the same options as the server but thats assuming the same cert is used for making the request (when as i think about it may be a false assumption but IMO whoever is creating an I think the main use case is not using the I hope this covers everything, let me know if you have any questions! |
Well, at the very least, the README should probably say something more than "object to be passed to https.createServer()" especially if you're not considering that as the main use case? |
@glasser agreed, it should clarify that this is used for client proxying as well, IF you define an agent. |
The
ssl
option is used (inlisten
) to mean "create an HTTPS server, using this as its constructor arguments". OK, that makes sense.But... it also is used in the argument to
common.setupOutgoing
the three times it is called? Which is constructing a request to use as a client? What are the expected options that are valid both as constructor options tohttps.Server
and as options tohttps.request
? (Or for that matter tohttp.request
, which could also be called there...)The text was updated successfully, but these errors were encountered: