parameters: (response)
return_statement: return method.upper() == "HEAD"
docstring: Checks whether the request of a response has been a HEAD-request.
      Handles the quirks of AppEngine.
  
      :param conn:
      :type conn: :class:`httplib.HTTPResponse`
docstring_summary: Checks whether the request of a response has been a HEAD-request.
      Handles the quirks of AppEngine.
docstring_tokens: Checks whether the request of a response has been a HEAD - request . Handles the quirks of AppEngine .
function: def is_response_to_head(response):
      """
      Checks whether the request of a response has been a HEAD-request.
      Handles the quirks of AppEngine.
  
      :param conn:
      :type conn: :class:`httplib.HTTPResponse`
      """
      # FIXME: Can we do this somehow without accessing private httplib _method?
      method = response._method
      if isinstance(method, int):  # Platform-specific: Appengine
          return method == 3
      return method.upper() == "HEAD"
function_tokens: def is_response_to_head ( response ) : # FIXME: Can we do this somehow without accessing private httplib _method? method = response . _method if isinstance ( method , int ) : # Platform-specific: Appengine return method == 3 return method . upper ( ) == "HEAD"