code: 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'
docs: Checks whether the request of a response has been a HEAD-request.
      Handles the quirks of AppEngine.
  
      :param conn:
      :type conn: :class:`httplib.HTTPResponse`