Module http_validators

Module http_validators 

Source
Expand description

Transport-neutral HTTP conditional request helpers.

Enums§

HttpValidatorError
Errors produced while parsing HTTP validators.

Functions§

format_http_dateDeprecated
Formats a system time as an IMF-fixdate HTTP date.
http_date_epoch_seconds
Returns whole seconds relative to the Unix epoch, preserving pre-epoch ordering.
if_match_header_matches
Applies the strong comparison required by If-Match.
if_match_headers_have_strong_tag
Reports whether If-Match is present and contains at least one strong entity-tag.
if_match_headers_match
Applies If-Match to all field lines in an HTTP header map.
if_none_match_header_matches
Applies the weak comparison required by If-None-Match.
if_none_match_headers_match
Applies If-None-Match to all field lines in an HTTP header map.
parse_http_date
Parses an HTTP date into system time.
try_format_entity_tag
Trims and validates one entity-tag, quoting an opaque backend value when needed.
try_format_http_date
Formats a system time when it is representable by the HTTP-date implementation.
validate_http_date
Validates that a system time is representable as an HTTP date without formatting it.