2016-06-01 02:06:57 +00:00
|
|
|
from __future__ import absolute_import, print_function, division
|
2015-08-30 13:27:29 +00:00
|
|
|
|
2016-06-01 02:06:57 +00:00
|
|
|
from netlib.http import decoded
|
|
|
|
from .connections import ClientConnection, ServerConnection
|
|
|
|
from .flow import Flow, Error
|
2015-08-30 13:27:29 +00:00
|
|
|
from .http import (
|
2016-04-11 21:14:18 +00:00
|
|
|
HTTPFlow, HTTPRequest, HTTPResponse, Headers,
|
2015-09-28 08:59:10 +00:00
|
|
|
make_error_response, make_connect_request, make_connect_response, expect_continue_response
|
2015-08-30 13:27:29 +00:00
|
|
|
)
|
2016-05-10 20:03:14 +00:00
|
|
|
from .tcp import TCPFlow
|
2015-08-30 13:27:29 +00:00
|
|
|
|
2016-04-30 03:18:32 +00:00
|
|
|
FLOW_TYPES = dict(
|
2016-05-10 20:03:14 +00:00
|
|
|
http=HTTPFlow,
|
|
|
|
tcp=TCPFlow,
|
2016-04-30 03:18:32 +00:00
|
|
|
)
|
|
|
|
|
2015-08-30 13:27:29 +00:00
|
|
|
__all__ = [
|
2015-09-14 21:58:06 +00:00
|
|
|
"HTTPFlow", "HTTPRequest", "HTTPResponse", "Headers", "decoded",
|
2015-08-30 13:59:50 +00:00
|
|
|
"make_error_response", "make_connect_request",
|
2015-09-28 08:59:10 +00:00
|
|
|
"make_connect_response", "expect_continue_response",
|
2015-08-30 13:27:29 +00:00
|
|
|
"ClientConnection", "ServerConnection",
|
|
|
|
"Flow", "Error",
|
2016-06-18 18:50:06 +00:00
|
|
|
"TCPFlow",
|
|
|
|
"FLOW_TYPES",
|
2015-08-30 13:27:29 +00:00
|
|
|
]
|