Size: 476
Comment:
|
Size: 475
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Ideas for an RFC 6532 API = | = Ideas for a RFC 6532 API = |
Ideas for a RFC 6532 API
Step 1:
change the Header class in header.py to make the default charset choosable (adding 'default_charset' keyarg to init and append)
create new classes in the headerregistry.py (e.g. UnicodeAddressHeader as inheritor of AddressHeader
- provide an alternative header map (e.g. _unicode_header_map) using the new classes
HeaderRegistry: either create an inherited class with the _unicode_header_map as default.