mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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: https://github.com/nodejs/node/pull/36631 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
ff4674b033
commit
8a0cdb3b4e
1 file changed
+19
-19
+19
-19
@@ -3283,6 +3283,25 @@ deprecated: v13.0.0
|
||||
|
||||
See [`response.socket`][].
|
||||
|
||||
#### `response.createPushResponse(headers, callback)`
|
||||
<!-- YAML
|
||||
added: v8.4.0
|
||||
-->
|
||||
|
||||
* `headers` {HTTP/2 Headers Object} An object describing the headers
|
||||
* `callback` {Function} Called once `http2stream.pushStream()` is finished,
|
||||
or either when the attempt to create the pushed `Http2Stream` has failed or
|
||||
has been rejected, or the state of `Http2ServerRequest` is closed prior to
|
||||
calling the `http2stream.pushStream()` method
|
||||
* `err` {Error}
|
||||
* `res` {http2.Http2ServerResponse} The newly-created `Http2ServerResponse`
|
||||
object
|
||||
|
||||
Call [`http2stream.pushStream()`][] with the given headers, and wrap the
|
||||
given [`Http2Stream`][] on a newly created `Http2ServerResponse` as the callback
|
||||
parameter if successful. When `Http2ServerRequest` is closed, the callback is
|
||||
called with an error `ERR_HTTP2_INVALID_STREAM`.
|
||||
|
||||
#### `response.end([data[, encoding]][, callback])`
|
||||
<!-- YAML
|
||||
added: v8.4.0
|
||||
@@ -3680,25 +3699,6 @@ const server = http2.createServer((req, res) => {
|
||||
Attempting to set a header field name or value that contains invalid characters
|
||||
will result in a [`TypeError`][] being thrown.
|
||||
|
||||
#### `response.createPushResponse(headers, callback)`
|
||||
<!-- YAML
|
||||
added: v8.4.0
|
||||
-->
|
||||
|
||||
* `headers` {HTTP/2 Headers Object} An object describing the headers
|
||||
* `callback` {Function} Called once `http2stream.pushStream()` is finished,
|
||||
or either when the attempt to create the pushed `Http2Stream` has failed or
|
||||
has been rejected, or the state of `Http2ServerRequest` is closed prior to
|
||||
calling the `http2stream.pushStream()` method
|
||||
* `err` {Error}
|
||||
* `res` {http2.Http2ServerResponse} The newly-created `Http2ServerResponse`
|
||||
object
|
||||
|
||||
Call [`http2stream.pushStream()`][] with the given headers, and wrap the
|
||||
given [`Http2Stream`][] on a newly created `Http2ServerResponse` as the callback
|
||||
parameter if successful. When `Http2ServerRequest` is closed, the callback is
|
||||
called with an error `ERR_HTTP2_INVALID_STREAM`.
|
||||
|
||||
## Collecting HTTP/2 performance metrics
|
||||
|
||||
The [Performance Observer][] API can be used to collect basic performance
|
||||
|
||||
Reference in new issue
Block a user