Relevant RFCs¶
RFC-2045¶
ietfparse.datastructures.ContentType
is an abstraction of the Content-Type header described in RFC 2045 and fully specified in section 5.1.
RFC-3986¶
ietfparse.algorithms.rewrite_url()
implements encoding and parsing per RFC 3986.
RFC-5980¶
ietfparse.algorithms.rewrite_url()
encodes hostnames according to RFC 5980 for the schemes identified byIDNA_SCHEMES
. Encoding can also be forced using theencode_with_idna
keyword parameter.
RFC-5988¶
ietfparse.headers.parse_link_header()
parses a Link HTTP header.ietfparse.datastructures.LinkHeader()
represents a Link HTTP header.
RFC-7231¶
ietfparse.algorithms.select_content_type()
implements proactive content negotiation as described in sections 3.4.1 and 5.3 of RFC 7231ietfparse.headers.parse_accept_charset()
parses a Accept-Charset value as described in section 5.3.3.ietfparse.headers.parse_http_accept_header()
parses a Accept value as described in section 5.3.2.ietfparse.headers.parse_list_header()
parses just about any of the comma-separated lists from RFC 7231. It doesn’t provide any logic other than parsing the header though.ietfparse.headers.parse_parameter_list()
parses thekey=value
portions common to many header values.