Struct miasht::builtin::servers::SimpleHttpServer
[−]
[src]
pub struct SimpleHttpServer<A, F> { /* fields omitted */ }
Methods
impl<A, F> SimpleHttpServer<A, F> where
A: Clone + Send + 'static,
F: Future<Item = (), Error = ()> + Send + 'static,
[src]
A: Clone + Send + 'static,
F: Future<Item = (), Error = ()> + Send + 'static,
fn new(argument: A, callback: fn(_: A, _: RawConnection) -> F) -> Self
[src]
impl<A, F> SimpleHttpServer<A, F>
[src]
fn max_request_header_count(&mut self, count: usize) -> &mut Self
[src]
fn min_buffer_size(&mut self, size: usize) -> &mut Self
[src]
fn max_buffer_size(&mut self, size: usize) -> &mut Self
[src]
Trait Implementations
impl<A: Debug, F: Debug> Debug for SimpleHttpServer<A, F>
[src]
impl<A, F> Server for SimpleHttpServer<A, F> where
A: Clone + Send + 'static,
F: Future<Item = (), Error = ()> + Send + 'static,
[src]
A: Clone + Send + 'static,
F: Future<Item = (), Error = ()> + Send + 'static,
type Transport = TcpStream
type SocketHandler = RawSocketHandler
type ConnectionHandler = ConnectionHandleCallback<A, TcpStream, F>
fn create_handlers(&mut self) -> (Self::SocketHandler, Self::ConnectionHandler)
[src]
fn before_listen(&mut self, listener: &mut TcpListener) -> Result<()>
[src]
fn start<S>(self, bind_addr: SocketAddr, spawner: S) -> ServerHandle where
Self: Sized + Send + 'static,
S: Spawn + Clone + Send + 'static,
[src]
Self: Sized + Send + 'static,
S: Spawn + Clone + Send + 'static,