Enum reqwest::header::ConnectionOption [] [src]

pub enum ConnectionOption {
    KeepAlive,
    Close,
    ConnectionHeader(UniCase<String>),
}

Values that can be in the Connection header.

Variants

The keep-alive connection value.

The close connection value.

Values in the Connection header that are supposed to be names of other Headers.

When a header field aside from Connection is used to supply control information for or about the current connection, the sender MUST list the corresponding field-name within the Connection header field.

Trait Implementations

impl Display for ConnectionOption

impl Debug for ConnectionOption

Formats the value using the given formatter.

impl PartialEq<ConnectionOption> for ConnectionOption

impl Clone for ConnectionOption

impl FromStr for ConnectionOption