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<MioTcpListener>, ) -> 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 !Freeze for HttpListener
impl !RefUnwindSafe for HttpListener
impl !Send for HttpListener
impl !Sync for HttpListener
impl Unpin for HttpListener
impl !UnwindSafe for HttpListener
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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