response.createPushResponse(headers, callback)
headers<HTTP/2 Headers Object> 描述头部的对象callback<Function> 当http2stream.pushStream()完成后调用,或者在尝试创建推送的Http2Stream失败或被拒绝时,或者在调用http2stream.pushStream()方法之前Http2ServerRequest的状态已关闭时调用err<Error>res<http2.Http2ServerResponse> 新创建的Http2ServerResponse对象
使用给定的头部调用 http2stream.pushStream(),并在成功时将给定的 Http2Stream 封装到新创建的 Http2ServerResponse 中作为回调参数。当 Http2ServerRequest 被关闭时,回调会带着错误 ERR_HTTP2_INVALID_STREAM 被调用。
🌐 Call http2stream.pushStream() with the given headers, and wrap the
given Http2Stream on a newly created Http2ServerResponse as the callback
parameter if successful. When Http2ServerRequest is closed, the callback is
called with an error ERR_HTTP2_INVALID_STREAM.