From ff4674b03376f9e3ef95c194b9aba7f8f6393671 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 25 Dec 2020 06:21:09 -0800 Subject: [PATCH] doc: correct callback parameter type for createPushResponse() Refs: https://github.com/nodejs/node/issues/22322#issuecomment-749348347 PR-URL: https://github.com/nodejs/node/pull/36631 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca --- doc/api/http2.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index ddb5658d25367f..a89a87a94ee1a4 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -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