From afb9534d653d8f3f67c1167206acc1455ccb4a16 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 e4239ce64942b9..ed96c719f9a462 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -3642,7 +3642,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