Skip to content

Commit 2772b0a

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 51e85c8 commit 2772b0a

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

858858
/// Similar to [`append_received_request_body`], but appends to the buffered request body.
859859
///
860-
/// This should only be called by the latest data processing filter in the filter chain.
861-
/// That is say for a given filter X, if and only if the filters following filter X in the filter
862-
/// chain have not yet accessed the body, filter X can safely modify the buffered body with this
863-
/// method.
860+
/// This method should only be used by the final data-processing filter in the chain.
861+
/// In other words, a filter may safely modify the buffered body only if no later filters
862+
/// in the chain have accessed it yet.
864863
///
865864
/// Returns false if the request body is not available.
866865
/// Note that after changing the request body, it is caller's responsibility to modify the

0 commit comments

Comments
 (0)