Enum http_stub::header::ConnectionOption [] [src]

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

Values that can be in the Connection header.

Variants

KeepAlive

The keep-alive connection value.

Close

The close connection value.

ConnectionHeader

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.