@@ -328,7 +328,6 @@ added: v8.4.0
328
328
* ` code ` {number} The HTTP/2 error code to send in the final ` GOAWAY ` frame.
329
329
If unspecified, and ` error ` is not undefined, the default is ` INTERNAL_ERROR ` ,
330
330
otherwise defaults to ` NO_ERROR ` .
331
- * Returns: {undefined}
332
331
333
332
Immediately terminates the ` Http2Session ` and the associated ` net.Socket ` or
334
333
` tls.TLSSocket ` .
@@ -471,7 +470,6 @@ added: v8.4.0
471
470
472
471
* ` msecs ` {number}
473
472
* ` callback ` {Function}
474
- * Returns: {undefined}
475
473
476
474
Used to set a callback function that is called when there is no activity on
477
475
the ` Http2Session ` after ` msecs ` milliseconds. The given ` callback ` is
@@ -531,7 +529,6 @@ added: v8.4.0
531
529
-->
532
530
533
531
* ` settings ` {HTTP2 Settings Object}
534
- * Returns {undefined}
535
532
536
533
Updates the current local settings for this ` Http2Session ` and sends a new
537
534
` SETTINGS ` frame to the connected HTTP/2 peer.
@@ -886,7 +883,6 @@ added: v8.4.0
886
883
` http2.constants.NGHTTP2_NO_ERROR ` (` 0x00 ` )
887
884
* ` callback ` {Function} An optional function registered to listen for the
888
885
` 'close' ` event.
889
- * Returns: {undefined}
890
886
891
887
Closes the ` Http2Stream ` instance by sending an ` RST_STREAM ` frame to the
892
888
connected HTTP/2 peer.
@@ -937,7 +933,6 @@ added: v8.4.0
937
933
and ` 256 ` (inclusive).
938
934
* ` silent ` {boolean} When ` true ` , changes the priority locally without
939
935
sending a ` PRIORITY ` frame to the connected peer.
940
- * Returns: {undefined}
941
936
942
937
Updates the priority for this ` Http2Stream ` instance.
943
938
@@ -998,7 +993,6 @@ added: v8.4.0
998
993
999
994
* ` msecs ` {number}
1000
995
* ` callback ` {Function}
1001
- * Returns: {undefined}
1002
996
1003
997
``` js
1004
998
const http2 = require (' http2' );
@@ -1121,7 +1115,6 @@ added: v8.4.0
1121
1115
-->
1122
1116
1123
1117
* ` headers ` {HTTP2 Headers Object}
1124
- * Returns: {undefined}
1125
1118
1126
1119
Sends an additional informational ` HEADERS ` frame to the connected HTTP/2 peer.
1127
1120
@@ -1165,7 +1158,6 @@ added: v8.4.0
1165
1158
* ` pushStream ` {ServerHttp2Stream} The returned pushStream object.
1166
1159
* ` headers ` {HTTP2 Headers Object} Headers object the pushStream was
1167
1160
initiated with.
1168
- * Returns: {undefined}
1169
1161
1170
1162
Initiates a push stream. The callback is invoked with the new ` Http2Stream `
1171
1163
instance created for the push stream passed as the second argument, or an
@@ -1200,7 +1192,6 @@ added: v8.4.0
1200
1192
include payload data.
1201
1193
* ` getTrailers ` {Function} Callback function invoked to collect trailer
1202
1194
headers.
1203
- * Returns: {undefined}
1204
1195
1205
1196
``` js
1206
1197
const http2 = require (' http2' );
0 commit comments