PyDocs

Nav

Internet Data Handling

EmailPolicy.header_factory

A callable that takes two arguments, name and value, where name is a header field name and value is an unfolded header field value, and returns a string subclass that represents that header. A default header_factory (see headerregistry) is provided that supports custom parsing for the various address and date RFC 5322 header field types, and the major MIME header field stypes. Support for additional custom parsing will be added in the future.
0 Examples
No examples for email.policy/EmailPolicy.header_factory.
See Also
No see-alsos for email.policy/EmailPolicy.header_factory
0 Notes
No notes for EmailPolicy.header_factory