diff options
author | Yuchen Wu <[email protected]> | 2024-06-20 15:07:52 -0700 |
---|---|---|
committer | Edward Wang <[email protected]> | 2024-06-28 12:34:25 -0700 |
commit | 1176af300b870439d37b3493c6876977a8a428d1 (patch) | |
tree | 02856821ac75856558985ac95f4da29116617b0a | |
parent | f9148430dbbbcf9d3658ba94eb434ae0e77f0be4 (diff) | |
download | pingora-1176af300b870439d37b3493c6876977a8a428d1.tar.gz pingora-1176af300b870439d37b3493c6876977a8a428d1.zip |
Make type alias http::Module public
Easier for 3rd party to implement the trait.
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-core/src/modules/http/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1 +1 @@ -27bf4df19b465281ddc2d348ed6f3f0402fa60cc
\ No newline at end of file +0195d63b6a8053fa3cf702f670b06067ae81bf6a
\ No newline at end of file diff --git a/pingora-core/src/modules/http/mod.rs b/pingora-core/src/modules/http/mod.rs index 31c5f9a..02a3e0c 100644 --- a/pingora-core/src/modules/http/mod.rs +++ b/pingora-core/src/modules/http/mod.rs @@ -65,7 +65,7 @@ pub trait HttpModule { fn as_any_mut(&mut self) -> &mut dyn Any; } -type Module = Box<dyn HttpModule + 'static + Send + Sync>; +pub type Module = Box<dyn HttpModule + 'static + Send + Sync>; /// Trait to init the http module ctx for each request pub trait HttpModuleBuilder { |