doc: fix the return type of outgoingMessage.setHeaders() · nodejs/node@c7f82ec · GitHub
Skip to content

Commit c7f82ec

Browse files
hkleungairuyadorno
authored andcommitted
doc: fix the return type of outgoingMessage.setHeaders()
The actual implementation returns `outgoingMessage` itself, but not exactly `http.ServerResponse`. Refs: https://github.com/nodejs/node/blob/20d8b85d3493bec944de541a896e0165dd356345/lib/_http_outgoing.js#L712-L751 PR-URL: #55290 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
1 parent a21be02 commit c7f82ec

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

doc/api/http.md

Lines changed: 3 additions & 5 deletions

0 commit comments

Comments
 (0)