Struct sozu_lib::http::HttpListener  
source · pub struct HttpListener { /* private fields */ }Implementations§
source§impl HttpListener
 
impl HttpListener
pub fn new( config: HttpListenerConfig, token: Token ) -> Result<HttpListener, ListenerError>
pub fn activate( &mut self, registry: &Registry, tcp_listener: Option<TcpListener> ) -> Result<Token, ListenerError>
pub fn add_http_front( &mut self, http_front: HttpFrontend ) -> Result<(), ListenerError>
pub fn remove_http_front( &mut self, http_front: HttpFrontend ) -> Result<(), ListenerError>
Trait Implementations§
source§impl L7ListenerHandler for HttpListener
 
impl L7ListenerHandler for HttpListener
fn get_sticky_name(&self) -> &str
fn get_connect_timeout(&self) -> u32
source§fn frontend_from_request(
    &self,
    host: &str,
    uri: &str,
    method: &Method
) -> Result<Route, FrontendFromRequestError>
 
fn frontend_from_request( &self, host: &str, uri: &str, method: &Method ) -> Result<Route, FrontendFromRequestError>
retrieve a frontend by parsing a request’s hostname, uri and method
source§impl ListenerHandler for HttpListener
 
impl ListenerHandler for HttpListener
fn get_addr(&self) -> &SocketAddr
Auto Trait Implementations§
impl !RefUnwindSafe for HttpListener
impl !Send for HttpListener
impl !Sync for HttpListener
impl Unpin for HttpListener
impl !UnwindSafe for HttpListener
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
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