From ab4ac3b00edfb78815e7062c7bff8772a6119b97 Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Tue, 28 Nov 2023 01:17:12 +0900 Subject: [PATCH] fix private type again --- rpxy-lib/src/globals.rs | 2 +- rpxy-lib/src/message_handle/handler_main.rs | 2 +- rpxy-lib/src/message_handle/mod.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rpxy-lib/src/globals.rs b/rpxy-lib/src/globals.rs index 71a2dca..86fdc46 100644 --- a/rpxy-lib/src/globals.rs +++ b/rpxy-lib/src/globals.rs @@ -8,7 +8,7 @@ use std::{net::SocketAddr, sync::Arc, time::Duration}; /// Global object containing proxy configurations and shared object like counters. /// But note that in Globals, we do not have Mutex and RwLock. It is indeed, the context shared among async tasks. -pub(crate) struct Globals { +pub struct Globals { /// Configuration parameters for proxy transport and request handlers pub proxy_config: ProxyConfig, /// Shared context - Counter for serving requests diff --git a/rpxy-lib/src/message_handle/handler_main.rs b/rpxy-lib/src/message_handle/handler_main.rs index 1c62bd4..5be08f1 100644 --- a/rpxy-lib/src/message_handle/handler_main.rs +++ b/rpxy-lib/src/message_handle/handler_main.rs @@ -32,7 +32,7 @@ pub(super) struct HandlerContext { /// HTTP message handler for requests from clients and responses from backend applications, /// responsible to manipulate and forward messages to upstream backends and downstream clients. // pub struct HttpMessageHandler -pub(crate) struct HttpMessageHandler +pub struct HttpMessageHandler where // T: Connect + Clone + Sync + Send + 'static, U: CryptoSource + Clone, diff --git a/rpxy-lib/src/message_handle/mod.rs b/rpxy-lib/src/message_handle/mod.rs index a9cb195..edeba27 100644 --- a/rpxy-lib/src/message_handle/mod.rs +++ b/rpxy-lib/src/message_handle/mod.rs @@ -7,4 +7,5 @@ mod synthetic_response; mod utils_headers; mod utils_request; -pub(crate) use handler_main::{HttpMessageHandler, HttpMessageHandlerBuilder, HttpMessageHandlerBuilderError}; +pub use handler_main::HttpMessageHandlerBuilderError; +pub(crate) use handler_main::{HttpMessageHandler, HttpMessageHandlerBuilder};