(headers, callback)
| 875 | } |
| 876 | |
| 877 | createPushResponse(headers, callback) { |
| 878 | validateFunction(callback, 'callback'); |
| 879 | if (this[kState].closed) { |
| 880 | process.nextTick(callback, new ERR_HTTP2_INVALID_STREAM()); |
| 881 | return; |
| 882 | } |
| 883 | this[kStream].pushStream(headers, {}, (err, stream, headers, options) => { |
| 884 | if (err) { |
| 885 | callback(err); |
| 886 | return; |
| 887 | } |
| 888 | callback(null, new Http2ServerResponse(stream)); |
| 889 | }); |
| 890 | } |
| 891 | |
| 892 | [kBeginSend]() { |
| 893 | const state = this[kState]; |
no test coverage detected