Uh oh!
There was an error while loading. Please reload this page.
doc: argument types for https & argument types cleanup for http - #11681
doc: argument types for https & argument types cleanup for http#11681ameliavoncat wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Maybe put them in separate entries and mention they are aliases?
There was a problem hiding this comment.
Er..I think lowercased primitive types are preferred after #11167?
There was a problem hiding this comment.
Ahh, I had read the summary (which said the opposite) but not the comment thread. Will change.
There was a problem hiding this comment.
Buffer[] | string[] | Object[] are supported by the tools now..
d0bee48 to
ad4ef9cCompareameliavoncat
commented
Mar 5, 2017
Changes made. |
There was a problem hiding this comment.
http.globalAgent would be clearer
There was a problem hiding this comment.
https.globalAgent would be clearer(notice https.globalAgent !== http.globalAgent)
There was a problem hiding this comment.
Can you merge the type signatures with option explanations below? Thanks!
ad4ef9c to
a892437Compareameliavoncat
commented
Mar 5, 2017
Updated. 😄 |
a892437 to
9a2862fCompareThere was a problem hiding this comment.
Elsewhere in the change you using the pattern Default = ....
Would you please update for consistency? Thank you! 😄
There was a problem hiding this comment.
Please replace your with the. (in generally we avoid use of pronouns such as you and your in the docs. Thank you!
9a2862f to
bcf0909Compareameliavoncat
commented
Mar 7, 2017
Changes made. |
72af375 to
a2ac3eaCompareThere was a problem hiding this comment.
Actually, I am not sure if the options need to be explained here since most of them are just passed to http.request, and that one has a more detailed explanation about these options? Maybe something like
* `options` {Object | string}: Takes the same values as `options` in [`http.request(options[, callback])`][] except that `method` is set to `GET`
is enough? This way future updates to http.request don't need to take care of the explanations here.
There was a problem hiding this comment.
Same here, tls.createServer() and tls.createSecureContext() have a detailed explanation about these options, so linking to the docs of them should be enough. (Of course the signature of options itself is still necessary)
There was a problem hiding this comment.
Ditto for http.request, moduloagent, port, protocol differences
jasnell
left a comment
There was a problem hiding this comment.
LGTM once @joyeecheung is happy with it also
5966723 to
3f63bd3Compareameliavoncat
commented
Mar 7, 2017
Updated. 😄 |
3f63bd3 to
471bb13Comparejoyeecheung
commented
Mar 8, 2017
jasnell
commented
Mar 8, 2017
Landed in f6b0309...9772fb9 |
italoacasas
commented
Mar 13, 2017
This is not landing clearly in |
Ref: nodejs#9399 PR-URL: nodejs#11681 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Ref: nodejs#9399 PR-URL: nodejs#11681 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Ref: nodejs#9399 PR-URL: nodejs#11681 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Ref: nodejs#9399 PR-URL: nodejs#11681 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
MylesBorins
commented
Apr 17, 2017
Are the changes relevant to v6.x? italoacasas@9c3cf13 cherry picks clean. |
MylesBorins
commented
May 15, 2017
ping |
| Returns a new HTTPS web server object. The `options` is similar to | ||
| [`tls.createServer()`][]. The `requestListener` is a function which is | ||
| automatically added to the `'request'` event. | ||
| - `options` {Object} Accepts `options` from [`tls.createServer()`][] and [`tls.createSecureContext()`][]. |
There was a problem hiding this comment.
long lines. can you please make sure to wrap all lines at <= 80 chars
There was a problem hiding this comment.
HA! oops lol... totally missed that this had already landed lol :-D
| The following additional `options` from [`tls.connect()`][] are also accepted when using a | ||
| custom [`Agent`][]: | ||
| `pfx`, `key`, `passphrase`, `cert`, `ca`, `ciphers`, `rejectUnauthorized`, `secureProtocol`, `servername` |
gibfahn
commented
Jun 17, 2017
Landed on v6.x-staging, LMK if that was a mistake. |
Checklist
Affected core subsystem(s)
documentation
Description of changes
Added argument data types to the docs for the
httpsmodule.Added missing argument data types to the docs for the
httpmodule.Lowercased primitive data types in the
httpmodule for consistency.Changed
Integerdata types toNumberfor consistency.Issue