def _header_property(header):
 def getter(self):
  return self.headers.get(header, None)
 def setter(self, value):
  self.headers[header] = value
 return property(getter, setter, doc=('Retrieve and set the %s header' % header))

def _header_property ( header ) : def getter ( self ) : return self . headers . get ( header , None ) def setter ( self , value ) : self . headers [ header ] = value return property ( getter , setter , doc = ( 'Retrieve and set the %s header' % header ) )
set and retrieve the value of self .