Enum hyper::header::IfMatch [-] [+] [src]

pub enum IfMatch {
    Any,
    EntityTags(Vec<EntityTag>),
}

The If-Match header

The If-Match request-header field is used with a method to make it conditional. The client provides a list of entity tags, and the request is only executed if one of those tags matches the current entity.

See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.24

Variants

Any

This corresponds to '*'.

EntityTags

The header field names which will influence the response representation.

Trait Implementations

impl Header for IfMatch

fn header_name() -> &'static str

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

impl HeaderFormat for IfMatch

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

impl Header for IfMatch

fn header_name() -> &'static str

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

impl HeaderFormat for IfMatch

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

Derived Implementations

impl Debug for IfMatch

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

impl PartialEq for IfMatch

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

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

impl Clone for IfMatch

fn clone(&self) -> IfMatch

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

impl Debug for IfMatch

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

impl PartialEq for IfMatch

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

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

impl Clone for IfMatch

fn clone(&self) -> IfMatch

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