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