aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Gumport <[email protected]>2024-11-22 15:50:50 -0800
committerYuchen Wu <[email protected]>2024-12-20 13:39:24 -0800
commit343fc989a925b941d3f2f8e80a472fc129fcaa6c (patch)
tree347f030b75626f7cc6ce9e5d743ae73168ad3496
parent36d68e813506e12470b8c7cd5a088668e9912a12 (diff)
downloadpingora-343fc989a925b941d3f2f8e80a472fc129fcaa6c.tar.gz
pingora-343fc989a925b941d3f2f8e80a472fc129fcaa6c.zip
change visibility of create_dummy_session
I'd like to use this in a filter outside of this crate. Need to change the visibility in order for it to be available.
-rw-r--r--.bleep2
-rw-r--r--pingora-proxy/src/lib.rs2
-rw-r--r--pingora-proxy/src/subrequest.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/.bleep b/.bleep
index e489c3f..c867e31 100644
--- a/.bleep
+++ b/.bleep
@@ -1 +1 @@
-fc39bb0c3d35fa5e07c21c261c2a5a68af53d440 \ No newline at end of file
+ce25a5ec3f6937d70f6a60b79adb6dd299144a84 \ No newline at end of file
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())))
}