(self, http=None)
return response
Issues a HTTP ``HEAD`` request for the object.

        Optional parameter `http` is the user agent object to use. `http`
        objects should be compatible with `httplib2.Http` objects.
Issues a HTTP ``HEAD`` request for the object.
Issues a HTTP HEAD request for the object .
def head(self, http=None):
        """Issues a HTTP ``HEAD`` request for the object.

        Optional parameter `http` is the user agent object to use. `http`
        objects should be compatible with `httplib2.Http` objects.

        """
        if getattr(self, '_location', None) is None:
            raise ValueError('Cannot issue HEAD for %r with no URL' % self)

        if http is None:
            http = userAgent
        response, content = http.request(uri=self._location, method='HEAD')

        return response
def head ( self , http = None ) : if getattr ( self , '_location' , None ) is None : raise ValueError ( 'Cannot issue HEAD for %r with no URL' % self ) if http is None : http = userAgent response , content = http . request ( uri = self . _location , method = 'HEAD' ) return response