(response)
return method.upper() == 'HEAD'
Checks, wether a the request of a response has been a HEAD-request.
    Handles the quirks of AppEngine.

    :param conn:
    :type conn: :class:`httplib.HTTPResponse`
Checks, wether a the request of a response has been a HEAD-request.
    Handles the quirks of AppEngine.
Checks wether a the request of a response has been a HEAD - request . Handles the quirks of AppEngine .
def is_response_to_head(response):
    """
    Checks, wether a 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'
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'