def __init__(self, request_handler, tcp_conn): HttpMessageHandler.__init__(self) self.request_handler = request_handler self._tcp_conn = tcp_conn self.req_body_cb = None self.req_done_cb = None self.method = None self.req_version = None self.connection_hdr = [] self._res_body_pause_cb = None
def __init__(self, res_start_cb): HttpMessageHandler.__init__(self) self.res_start_cb = res_start_cb self.res_body_cb = None self.res_done_cb = None self.method = None self.uri = None self.req_hdrs = [] self._tcp_conn = None self._conn_reusable = False self._req_body_pause_cb = None self._retries = 0 self._timeout_ev = None self._output_buffer = []