pub struct HttpProxy<SV> {
pub server_options: Option<HttpServerOptions>,
pub downstream_modules: HttpModules,
/* private fields */
}
Expand description
The concrete type that holds the user defined HTTP proxy.
Users don’t need to interact with this object directly.
Fields§
§server_options: Option<HttpServerOptions>
§downstream_modules: HttpModules
Trait Implementations§
Source§impl<SV> HttpServerApp for HttpProxy<SV>
impl<SV> HttpServerApp for HttpProxy<SV>
Source§fn process_new_http<'life0, 'life1, 'async_trait>(
self: &'life0 Arc<Self>,
session: HttpSession,
shutdown: &'life1 ShutdownWatch,
) -> Pin<Box<dyn Future<Output = Option<Stream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process_new_http<'life0, 'life1, 'async_trait>(
self: &'life0 Arc<Self>,
session: HttpSession,
shutdown: &'life1 ShutdownWatch,
) -> Pin<Box<dyn Future<Output = Option<Stream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn http_cleanup<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn server_options(&self) -> Option<&HttpServerOptions>
fn server_options(&self) -> Option<&HttpServerOptions>
Provide HTTP server options used to override default behavior. This function will be called
every time a new connection is processed. Read more
Auto Trait Implementations§
impl<SV> !Freeze for HttpProxy<SV>
impl<SV> !RefUnwindSafe for HttpProxy<SV>
impl<SV> Send for HttpProxy<SV>where
SV: Send,
impl<SV> Sync for HttpProxy<SV>where
SV: Sync,
impl<SV> Unpin for HttpProxy<SV>where
SV: Unpin,
impl<SV> !UnwindSafe for HttpProxy<SV>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more