diff --git a/docs/user_guide/phase.md b/docs/user_guide/phase.md index 5e30db8..46e9b5d 100644 --- a/docs/user_guide/phase.md +++ b/docs/user_guide/phase.md @@ -56,7 +56,7 @@ Pingora-proxy allows users to insert arbitrary logic into the life of a request. ### `early_request_filter()` This is the first phase of every request. -This function is similar to `request_filter()` but execute before any other logic especially the downstream modules. +This function is similar to `request_filter()` but executes before any other logic, including downstream module logic. The main purpose of this function is to provide finer-grained control of the behavior of the modules. ### `request_filter()` This phase is usually for validating request inputs, rate limiting, and initializing context. diff --git a/pingora-proxy/src/proxy_trait.rs b/pingora-proxy/src/proxy_trait.rs index 2d99567..029ea58 100644 --- a/pingora-proxy/src/proxy_trait.rs +++ b/pingora-proxy/src/proxy_trait.rs @@ -69,9 +69,9 @@ pub trait ProxyHttp { /// Handle the incoming request before any downstream module is executed. /// - /// This function is similar to [Self::request_filter()] but execute before any other logic - /// especially the downstream modules. The main purpose of this function is to provide finer - /// grained control of behavior of the modules. + /// This function is similar to [Self::request_filter()] but executes before any other logic, + /// including downstream module logic. The main purpose of this function is to provide finer + /// grained control of the behavior of the modules. /// /// Note that because this function is executed before any module that might provide access /// control or rate limiting, logic should stay in request_filter() if it can in order to be