Skip to content

Commit ff4674b

Browse files
Trottdanielleadams
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 8ad3455 commit ff4674b

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
@@ -3691,7 +3691,8 @@ added: v8.4.0
36913691
has been rejected, or the state of `Http2ServerRequest` is closed prior to
36923692
calling the `http2stream.pushStream()` method
36933693
* `err` {Error}
3694-
* `stream` {ServerHttp2Stream} The newly-created `ServerHttp2Stream` object
3694+
* `res` {http2.Http2ServerResponse} The newly-created `Http2ServerResponse`
3695+
object
36953696

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

0 commit comments

Comments
 (0)