Home | History | Annotate | Download | only in email

Lines Matching refs:header_factory

63     header_factory      -- a callable that takes two arguments, 'name' and
67 header. A default header_factory is provided that
89 header_factory = HeaderRegistry()
95 if 'header_factory' not in kw:
96 object.__setattr__(self, 'header_factory', HeaderRegistry())
105 return self.header_factory[name].max_count
134 unchanged. Otherwise the name and value are passed to header_factory
147 return (name, self.header_factory(name, value))
153 are passed to the header_factory method, and the resulting custom
162 return self.header_factory(name, value)
172 header_factory method. Folding of a custom header object is done by
213 return self.header_factory(name, ''.join(lines)).fold(policy=self)
218 # Make the default policy use the class default header_factory
219 del default.header_factory