summaryrefslogtreecommitdiff
path: root/doc/api/http2.md
diff options
context:
space:
mode:
authorOuyang Yadong <oyydoibh@gmail.com>2018-10-17 00:44:49 +0800
committerRich Trott <rtrott@gmail.com>2018-11-05 22:00:35 -0800
commit33fbb93d2f4bb928dd193e426e0c0b8c89311c95 (patch)
tree077ebd104ab7a54613affd92736cac72a5874374 /doc/api/http2.md
parent9a20a128305b95696a8de428afb223b21c9bb516 (diff)
downloadandroid-node-v8-33fbb93d2f4bb928dd193e426e0c0b8c89311c95.tar.gz
android-node-v8-33fbb93d2f4bb928dd193e426e0c0b8c89311c95.tar.bz2
android-node-v8-33fbb93d2f4bb928dd193e426e0c0b8c89311c95.zip
http2: add Http2Stream.bufferSize
This commit adds `bufferSize` for `Http2Stream`. Refs: https://github.com/nodejs/node/issues/21631 PR-URL: https://github.com/nodejs/node/pull/23711 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r--doc/api/http2.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index f3314695cf..2cd3943736 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -1012,6 +1012,15 @@ added: v8.4.0
Set to `true` if the `Http2Stream` instance was aborted abnormally. When set,
the `'aborted'` event will have been emitted.
+#### http2stream.bufferSize
+<!-- YAML
+added: REPLACEME
+-->
+* {number}
+
+This property shows the number of characters currently buffered to be written.
+See [`net.Socket.bufferSize`][] for details.
+
#### http2stream.close(code[, callback])
<!-- YAML
added: v8.4.0
@@ -3415,6 +3424,7 @@ following additional properties:
[`http2stream.pushStream()`]: #http2_http2stream_pushstream_headers_options_callback
[`net.Server.close()`]: net.html#net_server_close_callback
[`net.Socket`]: net.html#net_class_net_socket
+[`net.Socket.bufferSize`]: net.html#net_socket_buffersize
[`net.Socket.prototype.ref()`]: net.html#net_socket_ref
[`net.Socket.prototype.unref()`]: net.html#net_socket_unref
[`net.connect()`]: net.html#net_net_connect