parameters: (self, headers)
docstring: Prepares the given HTTP headers.
docstring_summary: Prepares the given HTTP headers.
docstring_tokens: Prepares the given HTTP headers .
function: def prepare_headers(self, headers):
  
          """Prepares the given HTTP headers."""
  
  
  
          self.headers = CaseInsensitiveDict()
  
          if headers:
  
              for header in headers.items():
  
                  # Raise exception on invalid header value.
  
                  check_header_validity(header)
  
                  name, value = header
  
                  self.headers[to_native_string(name)] = value
function_tokens: def prepare_headers ( self , headers ) : self . headers = CaseInsensitiveDict ( ) if headers : for header in headers . items ( ) : # Raise exception on invalid header value. check_header_validity ( header ) name , value = header self . headers [ to_native_string ( name ) ] = value