Relevant RFCs

RFC-2045

RFC-5988

RFC-6839

RFC-7231

  • ietfparse.algorithms.select_content_type() implements proactive content negotiation as described in sections 3.4.1 and 5.3 of RFC 7231

  • ietfparse.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 the key=value portions common to many header values.

RFC-7239