summaryrefslogtreecommitdiff
path: root/src/node_http2.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-08-08 15:32:22 +0200
committerAnna Henningsen <anna@addaleax.net>2017-08-10 13:47:26 +0200
commitd98606f968b8a73c06cae8cef639fa4c4a3fa2f5 (patch)
tree27e97c320a564c1d7e0f2a07347ae4c8bc01131f /src/node_http2.h
parentc7a9a2edd426fc6e0113b4b21e11b042ba1f9aae (diff)
downloadandroid-node-v8-d98606f968b8a73c06cae8cef639fa4c4a3fa2f5.tar.gz
android-node-v8-d98606f968b8a73c06cae8cef639fa4c4a3fa2f5.tar.bz2
android-node-v8-d98606f968b8a73c06cae8cef639fa4c4a3fa2f5.zip
src,http2: DRY header/trailer handling code up
Remove duplicate code through minor refactoring. PR-URL: https://github.com/nodejs/node/pull/14688 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_http2.h')
-rwxr-xr-xsrc/node_http2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_http2.h b/src/node_http2.h
index 49f6e55ebf..bf7134b235 100755
--- a/src/node_http2.h
+++ b/src/node_http2.h
@@ -387,7 +387,7 @@ class Http2Session : public AsyncWrap,
size_t length) override;
void OnFrameError(int32_t id, uint8_t type, int error_code) override;
void OnTrailers(Nghttp2Stream* stream,
- MaybeStackBuffer<nghttp2_nv>* trailers) override;
+ const SubmitTrailers& submit_trailers) override;
void AllocateSend(size_t recommended, uv_buf_t* buf) override;
int DoWrite(WriteWrap* w, uv_buf_t* bufs, size_t count,