doc: fix some mistakes of http-api-doc#14625
Conversation
doc/api/http.md
Outdated
There was a problem hiding this comment.
Agent's pool is agent.freeSockets. When a socket is assigned to a request, the socket must not be in agent.freeSockets.
doc/api/http.md
Outdated
There was a problem hiding this comment.
The req in the code is not http.ClientRequest.
|
Thank you. |
doc/api/http.md
Outdated
There was a problem hiding this comment.
ESLint error:
599:22 error Expected parentheses around arrow function argument arrow-parens
doc/api/http.md
Outdated
There was a problem hiding this comment.
This line exceeds 80 characters and needs to be rewrapped.
doc/api/http.md
Outdated
There was a problem hiding this comment.
This link needs a reference at the bottom of the doc.
doc/api/http.md
Outdated
There was a problem hiding this comment.
This link needs a reference at the bottom of the doc.
|
cc @nodejs/http |
592f69b to
2e05b30
Compare
|
@vsemozhetbyt what should I do if I want to know these errors in my machine before pushing a new commit. |
node tools\eslint\bin\eslint.js --rulesdir tools/eslint-rules/ --ext=.js,.md benchmark doc lib test toolsFeel free to ask any more questions if I am unclear on something) |
|
@vsemozhetbyt How can I get the rendered version of the doc? |
|
@MoonBall You can click on the "View" button from the diff tab (I've marked it by the red line): |
|
Or, if you will want to check errors before creating a PR, you can view a doc from your new pushed branch in your fork: https://github.com/MoonBall/node/blob/modify-http-api-doc/doc/api/http.md |
2e05b30 to
ee11a57
Compare
|
@vsemozhetbyt Thank you. I have fixed these problems. |
|
@MoonBall Thank you! |
|
Linter CI: https://ci.nodejs.org/job/node-test-linter/10974/ (green). |
ee11a57 to
35fc4f2
Compare
|
@vsemozhetbyt The linter CI seems like disappering after I push a new commit by using |
|
@vsemozhetbyt I find a good way to get the rendered doc from Building Node.js. Just run |
This should work this way, it is OK. For the future: if you add some changes after a review, it is better to do this in an additional commit (it will be squashed later), so the reviewers should not re-review all the diff again. Could you enumerate the new changes in the amended commit? Linter CI: https://ci.nodejs.org/job/node-test-linter/11107/ (green). |
|
OK. I comment the new changed code in the commit. |
| const ip = req.socket.remoteAddress; | ||
| const port = req.socket.remotePort; | ||
| const ip = res.socket.remoteAddress; | ||
| const port = res.socket.remotePort; |
There was a problem hiding this comment.
@jasnell @vsemozhetbyt It's changed after you reviewed.
| --> | ||
|
|
||
| * `request` {http.ClientRequest} | ||
| * `request` {http.IncomingMessage} |
There was a problem hiding this comment.
@jasnell @vsemozhetbyt It's changed after you reviewed.
|
@jasnell Do the last changes seem OK for you? Can we land? |
PR-URL: #14625 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
|
Landed in 4d842e3 |
PR-URL: #14625 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
PR-URL: #14625 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>

fix some mistakes of http-api-doc.
Checklist
Affected core subsystem(s)
doc, http