aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-proxy/src/proxy_trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pingora-proxy/src/proxy_trait.rs')
-rw-r--r--pingora-proxy/src/proxy_trait.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/pingora-proxy/src/proxy_trait.rs b/pingora-proxy/src/proxy_trait.rs
index 6f429ac..3b83fda 100644
--- a/pingora-proxy/src/proxy_trait.rs
+++ b/pingora-proxy/src/proxy_trait.rs
@@ -40,6 +40,11 @@ pub trait ProxyHttp {
ctx: &mut Self::CTX,
) -> Result<Box<HttpPeer>>;
+ /// Set up downstream modules.
+ ///
+ /// In this phase, users can add or configure modules before the server starts up.
+ fn init_downstream_modules(&self, _modules: &mut HttpModules) {}
+
/// Handle the incoming request.
///
/// In this phase, users can parse, validate, rate limit, perform access control and/or