From 9d1690da35df959c44517d4f6a1a48fa0a2c8b9d Mon Sep 17 00:00:00 2001 From: sky Date: Tue, 12 Jan 2021 19:40:15 -0600 Subject: [PATCH] fix comment for parameters end_stream of decodeData/encodeData. (#14620) Signed-off-by: wangfakang --- include/envoy/http/filter.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/envoy/http/filter.h b/include/envoy/http/filter.h index ecb39f22dcb0..b8d6de52fd6a 100644 --- a/include/envoy/http/filter.h +++ b/include/envoy/http/filter.h @@ -609,6 +609,7 @@ class StreamDecoderFilter : public StreamFilterBase { * Called with a decoded data frame. * @param data supplies the decoded data. * @param end_stream supplies whether this is the last data frame. + * Further note that end_stream is only true if there are no trailers. * @return FilterDataStatus determines how filter chain iteration proceeds. */ virtual FilterDataStatus decodeData(Buffer::Instance& data, bool end_stream) PURE; @@ -843,6 +844,7 @@ class StreamEncoderFilter : public StreamFilterBase { * Called with data to be encoded, optionally indicating end of stream. * @param data supplies the data to be encoded. * @param end_stream supplies whether this is the last data frame. + * Further note that end_stream is only true if there are no trailers. * @return FilterDataStatus determines how filter chain iteration proceeds. */ virtual FilterDataStatus encodeData(Buffer::Instance& data, bool end_stream) PURE;