parameters: (headers, name)
return_statement: return result
docstring: Removes the named header from the list of headers.  Returns the
      value of that header, or None if no header found.  If multiple
      headers are found, only the last one is returned.
docstring_summary: Removes the named header from the list of headers.  Returns the
      value of that header, or None if no header found.  If multiple
      headers are found, only the last one is returned.
docstring_tokens: Removes the named header from the list of headers . Returns the value of that header or None if no header found . If multiple headers are found only the last one is returned .
function: def remove_header(headers, name):
      """
      Removes the named header from the list of headers.  Returns the
      value of that header, or None if no header found.  If multiple
      headers are found, only the last one is returned.
      """
      name = name.lower()
      i = 0
      result = None
      while i < len(headers):
          if headers[i][0].lower() == name:
              result = headers[i][1]
              del headers[i]
              continue
          i += 1
      return result
function_tokens: def remove_header ( headers , name ) : name = name . lower ( ) i = 0 result = None while i < len ( headers ) : if headers [ i ] [ 0 ] . lower ( ) == name : result = headers [ i ] [ 1 ] del headers [ i ] continue i += 1 return result