| 10170 | { callback, body: res, contentType, statusCode, statusMessage, headers } |
| 10171 | ); |
| 10172 | } else { |
| 10173 | this.runInAsyncScope(callback, null, null, { |
| 10174 | statusCode, |
| 10175 | headers, |
| 10176 | trailers: this.trailers, |
| 10177 | opaque, |
| 10178 | body: res, |
| 10179 | context |
| 10180 | }); |
| 10181 | } |
| 10182 | } |
| 10183 | } |
| 10184 | onData(chunk) { |
| 10185 | return this.res.push(chunk); |
| 10186 | } |
| 10187 | onComplete(trailers) { |
| 10188 | util.parseHeaders(trailers, this.trailers); |
| 10189 | this.res.push(null); |
| 10190 | } |
| 10191 | onError(err) { |
| 10192 | const { res, callback, body, opaque } = this; |