def extension_header_def(header_type):
 def f(cls):
  _extension_headers[header_type] = cls
  cls.TYPE = header_type
  return cls
 return f

def extension_header_def ( header_type ) : def f ( cls ) : _extension_headers [ header_type ] = cls cls . TYPE = header_type return cls return f
extension header decorator .