Skip to content

Releases: jawah/kiss-headers

kiss-headers

21 May 22:58
7820c03
Compare
Choose a tag to compare

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

kiss-headers

20 May 23:59
5c3d27c
Compare
Choose a tag to compare

Changes:

  • Improvement: Implement insert() method on Headers class.
  • Feature: Introducing the Attributes class in models. Attributes/members are now ordered by default.
  • Improvement: Add pop() and insert() methods on Header class.
  • Bugfix: Unescape the double quote char in the cookie value when using SetCokies or Cookie classes.
  • Improvement: Implement valued_attrs property on Header to extract a list of distinct attributes that have at least one value attached to them.

The biggest improvement is that the Header class now acts ordered on its members and attributes/keys/values. See PR #32

The package will most likely go into feature freeze until 3.0-dev. The current focus will be around tests/docs and issues addressed. Enjoy 🎉
Thank all present and future adopters.

Docs are going to be updated soon.

kiss-headers

14 May 02:22
b6918ec
Compare
Choose a tag to compare

Changes:

  • Bugfix: dir method in Header instance could contain entries with illegal characters.
  • Documentation: Major update available at kiss-headers.tech
  • Bugfix: Allow set item value to contain comma-separated entries in Headers.
  • Bugfix: pop() method on Headers was discarding output_lock_type() toggle.
  • Feature: Introducing index() method on Headers class. Behave like list().index().
  • Bugfix: ContentDisposition was rejecting perfectly valid non-ASCII filename.
  • Improvement: Add ready-to-use methods in ContentDisposition class.
  • Improvement: Creates py.typed file. #29
  • Others: Docstring improvements.

kiss-headers

11 May 00:30
Compare
Choose a tag to compare

Changes :

  • Bugfix: Disallow single colon in username when using BasicAuth.
  • Add: Create ContentSecurityPolicy custom header in builder.py.
  • Improvement: Add ready-to-use methods in Authorization, BasicAuthorization, AltSvc, StrictTransportSecurity, ContentSecurityPolicy, WwwAuthenticate and ContentRange.
  • Improvement: Adjust/Add get_qualifier() method when needed in builder.py.

kiss-headers

05 May 22:49
929542d
Compare
Choose a tag to compare

Changes :

  • Feature : Polymorphism, transform a Header object to its corresponding subclass. #26
  • Feature : Implement pop() and popitem() methods in Headers.
  • Bugfix : Discard multiple entries detection if the header is 'Subject'.
  • Bugfix : Acknowledge the folding LF + 1 space technique to unfold.
  • Add : Cookie custom header class in builder.py.
  • Bugfix : Fix how WwwAuthenticate custom header is built.
  • Feature: Add unfolded_content property to Header class.
  • Other : Provide scripts for developers. #24

kiss-headers

19 Apr 18:18
51c3168
Compare
Choose a tag to compare

Changes : #22 #21 #20

  • Feature : Retrieve comments in header content using newly created comments property on Header.
  • Feature : Parse headers that are UTF-8 encoded when using parse_it() function with bytes.
  • Feature : Attribute value in header are unfolded by default when retrieving it. content property is not altered.
  • Other : Minor code simplification in Header class. Remove redundant private member.

kiss-headers

17 Apr 21:18
a966162
Compare
Choose a tag to compare

Changes :

  • Feature : Add method has_many() to verify if an header or attribute name has multiple entries associated.
  • Improvement : Allow class that inherit from CustomHeader to override their header name.
  • Feature : Add BasicAuthorization in the ready-to-use headers objects.
  • Bugfix : Implement bool method for Headers class to act like list() does.

kiss-headers

16 Apr 20:17
32fe30f
Compare
Choose a tag to compare

Changes :

  • Bugfix : Better detection of an illegal header name.
  • Improvement : parse_it() was too permissive and allowed illegal header name to be included.
  • Feature : Reversed can now be called upon an Headers instance.
  • Feature : Sorted can be used with an Headers instance to return a list of Header in alphabetical order.
  • Bugfix : ContentDisposition custom class was not encoding fallback filename properly.
  • Improvement : Headers class can be instantiated like Headers(Header("Content-Type", "text/html"), Header("Allow", "POST")).

kiss-headers

12 Apr 20:22
23cc92f
Compare
Choose a tag to compare

Changes :

  • Bugfix : Support for (yet unreleased) Python 3.9
  • Other : Disallow illegal header name when using Header class.

Also a few improvements in the code struct. 👍

kiss-headers

11 Apr 19:04
Compare
Choose a tag to compare

This is a minor release, ship bugfixes.

Changes :

  • Bugfix : Using CR+LF instead of LF when using repr of Headers #13
  • Bugfix : Removing member from an Header may left trailing spaces or a unneeded coma #15