def _resp_content_type_property():
 def getter(self):
  if ('content-type' in self.headers):
   return self.headers.get('content-type').split(';')[0]
 def setter(self, value):
  self.headers['content-type'] = value
 return property(getter, setter, doc='Retrieve and set the response Content-Type header')

def _resp_content_type_property ( ) : def getter ( self ) : if ( 'content-type' in self . headers ) : return self . headers . get ( 'content-type' ) . split ( ';' ) [ 0 ] def setter ( self , value ) : self . headers [ 'content-type' ] = value return property ( getter , setter , doc = 'Retrieve and set the response Content-Type header' )
set and retrieve response .