Struct iron::Protocol
[−]
[src]
pub struct Protocol(_);
Protocol used to serve content.
Methods
impl Protocol
[src]
fn http() -> Protocol
Plaintext HTTP/1
fn https() -> Protocol
HTTP/1 over SSL/TLS
fn name(&self) -> &str
Returns the name used for this protocol in a URI's scheme part.
Trait Implementations
impl Clone for Protocol
[src]
fn clone(&self) -> Protocol
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more