code: def head(self, url, **kwargs):
          
  
          kwargs.setdefault('allow_redirects', True)
          return self.request('head', url, **kwargs)
docs: Sends a HEAD request. Returns :class:`Response` object.
  
          :param url: URL for the new :class:`Request` object.
          :param **kwargs: Optional arguments that ``request`` takes.