Skip to content

Commit

Permalink
doc: correct callback parameter type for createPushResponse()
Browse files Browse the repository at this point in the history
Refs: nodejs#22322 (comment)

PR-URL: nodejs#36631
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott committed Dec 27, 2020
1 parent 245159f commit 4e038d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,8 @@ added: v8.4.0
has been rejected, or the state of `Http2ServerRequest` is closed prior to
calling the `http2stream.pushStream()` method
* `err` {Error}
* `stream` {ServerHttp2Stream} The newly-created `ServerHttp2Stream` object
* `res` {http2.Http2ServerResponse} The newly-created `Http2ServerResponse`
object

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

0 comments on commit 4e038d9

Please sign in to comment.