Struct httpbis::server_conn::ServerConnection
[−]
[src]
pub struct ServerConnection { /* fields omitted */ }
Methods
impl ServerConnection
[src]
fn new<S, A>(
lh: &Handle,
socket: TcpStream,
tls: ServerTlsOption<A>,
exec: CpuPoolOption,
conf: ServerConf,
service: Arc<S>
) -> (ServerConnection, HttpFuture<()>) where
S: Service,
A: TlsAcceptor,
lh: &Handle,
socket: TcpStream,
tls: ServerTlsOption<A>,
exec: CpuPoolOption,
conf: ServerConf,
service: Arc<S>
) -> (ServerConnection, HttpFuture<()>) where
S: Service,
A: TlsAcceptor,
fn new_plain_single_thread<S>(
lh: &Handle,
socket: TcpStream,
conf: ServerConf,
service: Arc<S>
) -> (ServerConnection, HttpFuture<()>) where
S: Service,
lh: &Handle,
socket: TcpStream,
conf: ServerConf,
service: Arc<S>
) -> (ServerConnection, HttpFuture<()>) where
S: Service,
fn new_plain_single_thread_fn<F>(
lh: &Handle,
socket: TcpStream,
conf: ServerConf,
f: F
) -> (ServerConnection, HttpFuture<()>) where
F: Fn(Headers, HttpPartStream) -> Response + Send + Sync + 'static,
lh: &Handle,
socket: TcpStream,
conf: ServerConf,
f: F
) -> (ServerConnection, HttpFuture<()>) where
F: Fn(Headers, HttpPartStream) -> Response + Send + Sync + 'static,
fn dump_state(&self) -> HttpFutureSend<ConnectionStateSnapshot>
For tests