def __eq__(self, r):
    if self.hostname != r.hostname or \
       self.port != r.port or \
       self.use_ssl != r.use_ssl or \
       self.url != r.url or \
       self.headers != r.headers:
      return False
    if (self.content or r.content) and self.content != r.content:
      return False
    return True
Compare two requests based on the host, port, use of ssl, url, headers
dataset/ETHPy150Open tweksteen/burst/burst/http.py/Request.__eq__