Constant http::header::IF_MATCH[][src]

pub const IF_MATCH: HeaderName = HeaderName{inner: Repr::Standard(StandardHeader::IfMatch),}

Makes a request conditional based on the E-Tag.

For GET and HEAD methods, the server will send back the requested resource only if it matches one of the listed ETags. For PUT and other non-safe methods, it will only upload the resource in this case.

The comparison with the stored ETag uses the strong comparison algorithm, meaning two files are considered identical byte to byte only. This is weakened when the W/ prefix is used in front of the ETag.

There are two common use cases: