Enum hyper::header::common::connection::ConnectionExperimental [-]  [+] [src]

pub enum Connection {
    KeepAlive,
    Close,
}

The Connection header.

Describes whether the socket connection should be closed or reused after this request/response is completed.

Variants

KeepAlive

The keep-alive connection value.

Close

The close connection value.

Trait Implementations

impl FromStr for Connection

fn from_str(s: &str) -> Option<Connection>

impl Header for Connection

fn header_name(_: Option<Connection>) -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<Connection>

fn fmt_header(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Show for Connection

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Connection

fn eq(&self, __arg_0: &Connection) -> bool

fn ne(&self, __arg_0: &Connection) -> bool

impl Clone for Connection

fn clone(&self) -> Connection

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