Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8a0cdb3

Browse filesBrowse files
Trottdanielleadams
authored andcommitted
doc: alphabetize http response properties
All the properties are already in alphabetical order except for createPushResponse(). Move that property to the alphabetical location in the list. PR-URL: #36631 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent ff4674b commit 8a0cdb3
Copy full SHA for 8a0cdb3

File tree

Expand file treeCollapse file tree

1 file changed

+19
-19
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+19
-19
lines changed
Open diff view settings
Collapse file

‎doc/api/http2.md‎

Copy file name to clipboardExpand all lines: doc/api/http2.md
+19-19Lines changed: 19 additions & 19 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3283,6 +3283,25 @@ deprecated: v13.0.0
32833283

32843284
See [`response.socket`][].
32853285

3286+
#### `response.createPushResponse(headers, callback)`
3287+
<!-- YAML
3288+
added: v8.4.0
3289+
-->
3290+
3291+
* `headers` {HTTP/2 Headers Object} An object describing the headers
3292+
* `callback` {Function} Called once `http2stream.pushStream()` is finished,
3293+
or either when the attempt to create the pushed `Http2Stream` has failed or
3294+
has been rejected, or the state of `Http2ServerRequest` is closed prior to
3295+
calling the `http2stream.pushStream()` method
3296+
* `err` {Error}
3297+
* `res` {http2.Http2ServerResponse} The newly-created `Http2ServerResponse`
3298+
object
3299+
3300+
Call [`http2stream.pushStream()`][] with the given headers, and wrap the
3301+
given [`Http2Stream`][] on a newly created `Http2ServerResponse` as the callback
3302+
parameter if successful. When `Http2ServerRequest` is closed, the callback is
3303+
called with an error `ERR_HTTP2_INVALID_STREAM`.
3304+
32863305
#### `response.end([data[, encoding]][, callback])`
32873306
<!-- YAML
32883307
added: v8.4.0
@@ -3680,25 +3699,6 @@ const server = http2.createServer((req, res) => {
36803699
Attempting to set a header field name or value that contains invalid characters
36813700
will result in a [`TypeError`][] being thrown.
36823701

3683-
#### `response.createPushResponse(headers, callback)`
3684-
<!-- YAML
3685-
added: v8.4.0
3686-
-->
3687-
3688-
* `headers` {HTTP/2 Headers Object} An object describing the headers
3689-
* `callback` {Function} Called once `http2stream.pushStream()` is finished,
3690-
or either when the attempt to create the pushed `Http2Stream` has failed or
3691-
has been rejected, or the state of `Http2ServerRequest` is closed prior to
3692-
calling the `http2stream.pushStream()` method
3693-
* `err` {Error}
3694-
* `res` {http2.Http2ServerResponse} The newly-created `Http2ServerResponse`
3695-
object
3696-
3697-
Call [`http2stream.pushStream()`][] with the given headers, and wrap the
3698-
given [`Http2Stream`][] on a newly created `Http2ServerResponse` as the callback
3699-
parameter if successful. When `Http2ServerRequest` is closed, the callback is
3700-
called with an error `ERR_HTTP2_INVALID_STREAM`.
3701-
37023702
## Collecting HTTP/2 performance metrics
37033703

37043704
The [Performance Observer][] API can be used to collect basic performance

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.