Skip to content

Commit ebabc36

Browse files
wbpcodemathetake
andauthored
Update source/extensions/dynamic_modules/sdk/rust/src/lib.rs
Co-authored-by: Takeshi Yoneda <[email protected]> Signed-off-by: code <[email protected]>
1 parent 61e115f commit ebabc36

File tree

1 file changed

+3
-4
lines changed
  • source/extensions/dynamic_modules/sdk/rust/src

1 file changed

+3
-4
lines changed

source/extensions/dynamic_modules/sdk/rust/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -926,10 +926,9 @@ pub trait EnvoyHttpFilter {
926926

927927
/// Similar to [`drain_received_response_body`], but drains from the buffered response body.
928928
///
929-
/// This should only be called by the latest data processing filter in the filter chain.
930-
/// That is say for a given filter X, if and only if the filters following filter X in the filter
931-
/// chain have not yet accessed the body, filter X can safely modify the buffered body with this
932-
/// method.
929+
/// This method should only be used by the final data-processing filter in the chain.
930+
/// In other words, a filter may safely modify the buffered body only if no later filters
931+
/// in the chain have accessed it yet.
933932
///
934933
/// Returns false if the response body is not available.
935934
/// Note that after changing the response body, it is caller's responsibility to modify the

0 commit comments

Comments
 (0)