Skip to content

Commit 609a180

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 ebabc36 commit 609a180

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
@@ -836,10 +836,9 @@ pub trait EnvoyHttpFilter {
836836

837837
/// Similar to [`drain_received_request_body`], but drains from the buffered request body.
838838
///
839-
/// This should only be called by the latest data processing filter in the filter chain.
840-
/// That is say for a given filter X, if and only if the filters following filter X in the filter
841-
/// chain have not yet accessed the body, filter X can safely modify the buffered body with this
842-
/// method.
839+
/// This method should only be used by the final data-processing filter in the chain.
840+
/// In other words, a filter may safely modify the buffered body only if no later filters
841+
/// in the chain have accessed it yet.
843842
///
844843
/// Returns false if the request body is not available.
845844
/// Note that after changing the request body, it is caller's responsibility to modify the

0 commit comments

Comments
 (0)