Skip to content
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

doc: add documentation for response.flushHeaders() #28807

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,13 @@ added: v0.0.2
The `response.finished` property will be `true` if [`response.end()`][]
has been called.

### response.flushHeaders()
<!-- YAML
added: v1.6.0
-->

Flush the response headers.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Flush the response headers.
Flushes the response headers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's for consistency with https://nodejs.org/api/http.html#http_request_flushheaders. Should we change both?


### response.getHeader(name)
<!-- YAML
added: v0.4.0
Expand Down