Skip to content

Commit afb9534

Browse files
Trotttargos
authored andcommitted
doc: correct callback parameter type for createPushResponse()
Refs: #22322 (comment) PR-URL: #36631 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent dd10afc commit afb9534

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/http2.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3642,7 +3642,8 @@ added: v8.4.0
36423642
has been rejected, or the state of `Http2ServerRequest` is closed prior to
36433643
calling the `http2stream.pushStream()` method
36443644
* `err` {Error}
3645-
* `stream` {ServerHttp2Stream} The newly-created `ServerHttp2Stream` object
3645+
* `res` {http2.Http2ServerResponse} The newly-created `Http2ServerResponse`
3646+
object
36463647

36473648
Call [`http2stream.pushStream()`][] with the given headers, and wrap the
36483649
given [`Http2Stream`][] on a newly created `Http2ServerResponse` as the callback

0 commit comments

Comments
 (0)