code: def is_same_host(self, url):
          
          # TODO: Add optional support for socket.gethostbyname checking.
          return (url.startswith('/') or
                  get_host(url) == (self.scheme, self.host, self.port))
docs: Check if the given ``url`` is a member of the same host as this
          conncetion pool.