doc: remove http2 pushStream weight option
The PRIORITY field is only supported by HTTP/2 in a HEADERS frame initiated by the client, not in a push request sent by the server. Documents the recommended approach to set a silent priority as used internally by nghttp2. PR-URL: https://github.com/nodejs/node/pull/16451 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
This commit is contained in:
parent
c66e5551df
commit
a0f7ae6c41
@ -989,9 +989,6 @@ added: v8.4.0
|
|||||||
Defaults to `false`.
|
Defaults to `false`.
|
||||||
* `parent` {number} Specifies the numeric identifier of a stream the newly
|
* `parent` {number} Specifies the numeric identifier of a stream the newly
|
||||||
created stream is dependent on.
|
created stream is dependent on.
|
||||||
* `weight` {number} Specifies the relative dependency of a stream in relation
|
|
||||||
to other streams with the same `parent`. The value is a number between `1`
|
|
||||||
and `256` (inclusive).
|
|
||||||
* `callback` {Function} Callback that is called once the push stream has been
|
* `callback` {Function} Callback that is called once the push stream has been
|
||||||
initiated.
|
initiated.
|
||||||
* Returns: {undefined}
|
* Returns: {undefined}
|
||||||
@ -1012,6 +1009,10 @@ server.on('stream', (stream) => {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Setting the weight of a push stream is not allowed in the `HEADERS` frame. Pass
|
||||||
|
a `weight` value to `http2stream.priority` with the `silent` option set to
|
||||||
|
`true` to enable server-side bandwidth balancing between concurrent streams.
|
||||||
|
|
||||||
#### http2stream.respond([headers[, options]])
|
#### http2stream.respond([headers[, options]])
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v8.4.0
|
added: v8.4.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user