parameters: (self, header=None)
return_statement: return self.session.headers[header]
docstring: Returns the requested header or all headers if none is specified.
          These are the headers sent, not those received from the backend.
docstring_summary: Returns the requested header or all headers if none is specified.
          These are the headers sent, not those received from the backend.
docstring_tokens: Returns the requested header or all headers if none is specified . These are the headers sent not those received from the backend .
function: def get_headers(self, header=None):
          """
          Returns the requested header or all headers if none is specified.
          These are the headers sent, not those received from the backend.
          """
  
          if not self.session.headers:
              self.logger.debug('No headers yet, call send() 1st.')
              return None
  
          if not header:
              return self.session.headers
  
          return self.session.headers[header]
function_tokens: def get_headers ( self , header = None ) : if not self . session . headers : self . logger . debug ( 'No headers yet, call send() 1st.' ) return None if not header : return self . session . headers return self . session . headers [ header ]