예제 #1
0
파일: server.py 프로젝트: JaapSuter/thor
 def __init__(self, tcp_conn, server):
     HttpMessageHandler.__init__(self)
     EventEmitter.__init__(self)
     self.tcp_conn = tcp_conn
     self.server = server
     self.ex_queue = [] # queue of exchanges
     self.output_paused = False
예제 #2
0
 def __init__(self, tcp_conn: TcpConnection, server: HttpServer) -> None:
     HttpMessageHandler.__init__(self)
     EventEmitter.__init__(self)
     self.tcp_conn = tcp_conn
     self.server = server
     self.ex_queue = []  # type: list[HttpServerExchange] # queue of exchanges
     self.output_paused = False
예제 #3
0
파일: framework.py 프로젝트: nkzxw/thor
 def __init__(self, *args, **kw):
     HttpMessageHandler.__init__(self, *args, **kw)
     self.test_top_line = None
     self.test_hdrs = None
     self.test_body = ""
     self.test_trailers = None
     self.test_err = None
     self.test_states = []
예제 #4
0
파일: client.py 프로젝트: nethi/thor
 def __init__(self, client):
     HttpMessageHandler.__init__(self)
     EventEmitter.__init__(self)
     self.client = client
     self.method = None
     self.uri = None
     self.req_hdrs = None
     self.req_target = None
     self.scheme = None
     self.authority = None
     self.res_version = None
     self.tcp_conn = None
     self._conn_reusable = False
     self._req_body = False
     self._req_started = False
     self._retries = 0
     self._read_timeout_ev = None
     self._output_buffer = []
예제 #5
0
 def __init__(self, client) -> None:
     HttpMessageHandler.__init__(self)
     EventEmitter.__init__(self)
     self.client = client
     self.careful = client.careful
     self.method = None             # type: bytes
     self.uri = None                # type: bytes
     self.req_hdrs = None           # type: RawHeaderListType
     self.req_target = None         # type: bytes
     self.scheme = None             # type: bytes
     self.authority = None          # type: bytes
     self.res_version = None        # type: bytes
     self.tcp_conn = None           # type: TcpConnection
     self.origin = None             # type: OriginType
     self._conn_reusable = False
     self._req_body = False
     self._req_started = False
     self._retries = 0
     self._read_timeout_ev = None   # type: ScheduledEvent
     self._output_buffer = []       # type: list[bytes]