summaryrefslogtreecommitdiff
path: root/doc/api/http2.md
diff options
context:
space:
mode:
authorSho Miyamoto <shqld8@gmail.com>2018-02-22 05:09:55 +0900
committerBenjamin Gruenbaum <benji@peer5.com>2018-02-26 16:46:55 +0200
commit646e67e1dca9df6ca8e81dcbfa683d2623110c85 (patch)
tree371a867739e3dd62710e1e18b57f5ddd29de4d30 /doc/api/http2.md
parent1bb92ce04fdf516742f6462d5b26dabc558183a6 (diff)
downloadandroid-node-v8-646e67e1dca9df6ca8e81dcbfa683d2623110c85.tar.gz
android-node-v8-646e67e1dca9df6ca8e81dcbfa683d2623110c85.tar.bz2
android-node-v8-646e67e1dca9df6ca8e81dcbfa683d2623110c85.zip
doc: remove `Returns: {undefined}`
Removed * Returns: {undefined} in doc/ to prevent confusing users PR-URL: https://github.com/nodejs/node/pull/18951 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r--doc/api/http2.md9
1 files changed, 0 insertions, 9 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index 14dae38b49..94f25377d0 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -327,7 +327,6 @@ added: v8.4.0
* `code` {number} The HTTP/2 error code to send in the final `GOAWAY` frame.
If unspecified, and `error` is not undefined, the default is `INTERNAL_ERROR`,
otherwise defaults to `NO_ERROR`.
-* Returns: {undefined}
Immediately terminates the `Http2Session` and the associated `net.Socket` or
`tls.TLSSocket`.
@@ -470,7 +469,6 @@ added: v8.4.0
* `msecs` {number}
* `callback` {Function}
-* Returns: {undefined}
Used to set a callback function that is called when there is no activity on
the `Http2Session` after `msecs` milliseconds. The given `callback` is
@@ -530,7 +528,6 @@ added: v8.4.0
-->
* `settings` {HTTP2 Settings Object}
-* Returns {undefined}
Updates the current local settings for this `Http2Session` and sends a new
`SETTINGS` frame to the connected HTTP/2 peer.
@@ -882,7 +879,6 @@ added: v8.4.0
`http2.constants.NGHTTP2_NO_ERROR` (`0x00`)
* `callback` {Function} An optional function registered to listen for the
`'close'` event.
-* Returns: {undefined}
Closes the `Http2Stream` instance by sending an `RST_STREAM` frame to the
connected HTTP/2 peer.
@@ -933,7 +929,6 @@ added: v8.4.0
and `256` (inclusive).
* `silent` {boolean} When `true`, changes the priority locally without
sending a `PRIORITY` frame to the connected peer.
-* Returns: {undefined}
Updates the priority for this `Http2Stream` instance.
@@ -994,7 +989,6 @@ added: v8.4.0
* `msecs` {number}
* `callback` {Function}
-* Returns: {undefined}
```js
const http2 = require('http2');
@@ -1117,7 +1111,6 @@ added: v8.4.0
-->
* `headers` {HTTP2 Headers Object}
-* Returns: {undefined}
Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer.
@@ -1161,7 +1154,6 @@ added: v8.4.0
* `pushStream` {ServerHttp2Stream} The returned pushStream object.
* `headers` {HTTP2 Headers Object} Headers object the pushStream was
initiated with.
-* Returns: {undefined}
Initiates a push stream. The callback is invoked with the new `Http2Stream`
instance created for the push stream passed as the second argument, or an
@@ -1196,7 +1188,6 @@ added: v8.4.0
include payload data.
* `getTrailers` {Function} Callback function invoked to collect trailer
headers.
-* Returns: {undefined}
```js
const http2 = require('http2');