aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-proxy/src
diff options
context:
space:
mode:
Diffstat (limited to 'pingora-proxy/src')
-rw-r--r--pingora-proxy/src/lib.rs2
-rw-r--r--pingora-proxy/src/subrequest.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/pingora-proxy/src/lib.rs b/pingora-proxy/src/lib.rs
index fa639f2..bf4d4ec 100644
--- a/pingora-proxy/src/lib.rs
+++ b/pingora-proxy/src/lib.rs
@@ -74,7 +74,7 @@ mod proxy_h1;
mod proxy_h2;
mod proxy_purge;
mod proxy_trait;
-mod subrequest;
+pub mod subrequest;
use subrequest::Ctx as SubReqCtx;
diff --git a/pingora-proxy/src/subrequest.rs b/pingora-proxy/src/subrequest.rs
index 68e2876..60a5c73 100644
--- a/pingora-proxy/src/subrequest.rs
+++ b/pingora-proxy/src/subrequest.rs
@@ -124,7 +124,7 @@ pub(crate) struct Ctx {
use crate::HttpSession;
-pub(crate) fn create_dummy_session(parsed_session: &HttpSession) -> HttpSession {
+pub fn create_dummy_session(parsed_session: &HttpSession) -> HttpSession {
// TODO: check if there is req body, we don't capture the body for now
HttpSession::new_http1(Box::new(DummyIO::new(&parsed_session.to_h1_raw())))
}