Kiss Headers Versions Save

Python package for HTTP/1.1 style headers. Parse headers to objects. Most advanced available structure for http headers.

2.4.3

6 months ago

The function parse_it was improved.

  • Added support for niquests.Response
  • Added support for kiss_headers.Headers (deep copy returned)

2.4.2

6 months ago
  • Fixed parse_it when given Mapping contains unattended types (outside str and bytes)

2.4.1

6 months ago
  • Fixed an issue where parse_it is given a Mapping-like containing bytes in values or keys and crashes on decode_partials.
  • Added hints on Header (common attributes) and Headers (standard headers).

2.4.0

7 months ago

Long overdue refresh for this package.

Added

  • Support for JSON value in a header. It is now interpreted.
  • Explicit support for Python 3.12

Fixed

  • Incorrectly split a header when it contains a valid JSON (due to the comma delimiter)

Removed

  • Support for Python 3.6

Changed

  • (internal) Changed absolute import to relative ones.
  • The generic T passed to get_polymorphic is now bound to CustomHeader and covariants.

2.3.1

2 years ago

Changes:

Explicit support for Python 3.11, migrate to GHA, and add _all_ to top-level init. Minor package refresh.

2.3.0

3 years ago

Changes :

  • Feature: Offer an opinionated way to un/serialize headers #45
  • Bugfix: Fix inserting attribute in header using index when header is empty ad546fe31d2f79e28f86cadec2fef35b5679bbb1
  • Miscellaneous: Add python 3.10 to supported interpreters

2.2.4

3 years ago

Changes :

  • Bugfix: Function is_legal_header_name approved some illegal header name. #41
  • Miscelaneous: Added MANIFEST.in file
  • Other: Method values() of the class Headers was returning NotImplemented, now raise NotImplementedError instead.

2.2.3

3 years ago

Changes:

  • Bugfix: The double-quote character wasn't handled correctly inside an attrs value.
  • Bugfix: Cannot pass a BufferedReader (fp) to the parse_it function.
  • Bugfix: Fix the unfolding inside header content.

2.2.2

3 years ago

Changes: This is a bugfix release. (#36)

  • Bugfix: gt and lt implemented but missing ge and le in Header.
  • Bugfix: Attributes.remove() method would fail to remove properly if with_value is None and index is not provided.
  • Bugfix: Support negative index in Attributes.insert() method.
  • Bugfix: Delete an attribute no longer remove members that are named after the target key. #35
  • Improvement: Docstring additions.

2.2.1

3 years ago

This is a bugfix release. See PR #34 Fix regression seen in 2.2.0