@@ -327,7 +327,6 @@ added: v8.4.0
327
327
* ` code ` {number} The HTTP/2 error code to send in the final ` GOAWAY ` frame.
328
328
If unspecified, and ` error ` is not undefined, the default is ` INTERNAL_ERROR ` ,
329
329
otherwise defaults to ` NO_ERROR ` .
330
- * Returns: {undefined}
331
330
332
331
Immediately terminates the ` Http2Session ` and the associated ` net.Socket ` or
333
332
` tls.TLSSocket ` .
@@ -470,7 +469,6 @@ added: v8.4.0
470
469
471
470
* ` msecs ` {number}
472
471
* ` callback ` {Function}
473
- * Returns: {undefined}
474
472
475
473
Used to set a callback function that is called when there is no activity on
476
474
the ` Http2Session ` after ` msecs ` milliseconds. The given ` callback ` is
@@ -530,7 +528,6 @@ added: v8.4.0
530
528
-->
531
529
532
530
* ` settings ` {HTTP2 Settings Object}
533
- * Returns {undefined}
534
531
535
532
Updates the current local settings for this ` Http2Session ` and sends a new
536
533
` SETTINGS ` frame to the connected HTTP/2 peer.
@@ -882,7 +879,6 @@ added: v8.4.0
882
879
` http2.constants.NGHTTP2_NO_ERROR ` (` 0x00 ` )
883
880
* ` callback ` {Function} An optional function registered to listen for the
884
881
` 'close' ` event.
885
- * Returns: {undefined}
886
882
887
883
Closes the ` Http2Stream ` instance by sending an ` RST_STREAM ` frame to the
888
884
connected HTTP/2 peer.
@@ -933,7 +929,6 @@ added: v8.4.0
933
929
and ` 256 ` (inclusive).
934
930
* ` silent ` {boolean} When ` true ` , changes the priority locally without
935
931
sending a ` PRIORITY ` frame to the connected peer.
936
- * Returns: {undefined}
937
932
938
933
Updates the priority for this ` Http2Stream ` instance.
939
934
@@ -994,7 +989,6 @@ added: v8.4.0
994
989
995
990
* ` msecs ` {number}
996
991
* ` callback ` {Function}
997
- * Returns: {undefined}
998
992
999
993
``` js
1000
994
const http2 = require (' http2' );
@@ -1117,7 +1111,6 @@ added: v8.4.0
1117
1111
-->
1118
1112
1119
1113
* ` headers ` {HTTP2 Headers Object}
1120
- * Returns: {undefined}
1121
1114
1122
1115
Sends an additional informational ` HEADERS ` frame to the connected HTTP/2 peer.
1123
1116
@@ -1161,7 +1154,6 @@ added: v8.4.0
1161
1154
* ` pushStream ` {ServerHttp2Stream} The returned pushStream object.
1162
1155
* ` headers ` {HTTP2 Headers Object} Headers object the pushStream was
1163
1156
initiated with.
1164
- * Returns: {undefined}
1165
1157
1166
1158
Initiates a push stream. The callback is invoked with the new ` Http2Stream `
1167
1159
instance created for the push stream passed as the second argument, or an
@@ -1196,7 +1188,6 @@ added: v8.4.0
1196
1188
include payload data.
1197
1189
* ` getTrailers ` {Function} Callback function invoked to collect trailer
1198
1190
headers.
1199
- * Returns: {undefined}
1200
1191
1201
1192
``` js
1202
1193
const http2 = require (' http2' );
0 commit comments