Enum hyper::net::HttpListener [-]  [+] [src]

pub enum HttpListener {
    Http,
    Https(Path, Path),
}

A NetworkListener for HttpStreams.

Variants

Http

Http variant.

Https

Https variant. The two paths point to the certificate and key PEM files, in that order.

Trait Implementations

impl NetworkListener for HttpListener

type Acceptor = HttpAcceptor

fn listen<To: ToSocketAddr>(&mut self, addr: To) -> IoResult<HttpAcceptor>