'Constructor.
Args:
client: The HTTPClient to use. Will be reparented.'

def __init__(self, client, parent=None):

    super().__init__(parent)
    client.setParent(self)
    client.error.connect(self.error)
    client.success.connect(self.on_client_success)
    self._client = client
