Enum iron::Protocol [] [src]

pub enum Protocol {
    Http,
    Https {
        certificate: PathBuf,
        key: PathBuf,
    },
}

Protocol used to serve content. Future versions of Iron may add new protocols to this enum. Thus you should not exhaustively match on its variants.

Variants

Http

Plaintext HTTP/1

Https

HTTP/1 over SSL/TLS

Fields

certificate

Path to SSL certificate file

key

Path to SSL private key file

Methods

impl Protocol

fn name(&self) -> &'static str

Return the name used for this protocol in a URI's scheme part.

Trait Implementations

Derived Implementations

impl Clone for Protocol

fn clone(&self) -> Protocol

fn clone_from(&mut self, source: &Self)