Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore ListLoad Str Str ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body If BoolOpAnd Call NameLoad NameLoad Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body If Call AttributeLoad NameLoad attr body Return If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body If Call AttributeLoad NameLoad attr body Return If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Assign NameStore Num If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Print BinOpMod Str NameLoad Expr Call NameLoad NameLoad
N/A N/A sys N/A socket N/A tornado.httpserver N/A tornado.ioloop N/A tornado.iostream N/A tornado.web N/A tornado.httpclient N/A __all__ N/A ProxyHandler run_proxy ProxyHandler N/A N/A N/A tornado web RequestHandler N/A N/A SUPPORTED_METHODS N/A GET POST CONNECT get N/A N/A self N/A N/A handle_response N/A N/A response N/A N/A N/A N/A N/A response error N/A N/A isinstance N/A response error N/A N/A tornado httpclient HTTPError N/A N/A N/A N/A self set_status 500 N/A N/A N/A self write N/A Internal server error:
 N/A str N/A response error N/A N/A N/A self finish N/A N/A N/A N/A self set_status N/A response code N/A header N/A Date Cache-Control Server Content-Type Location N/A N/A v N/A N/A N/A response headers get header N/A v N/A N/A N/A N/A self set_header header v N/A N/A response body N/A N/A N/A N/A self write N/A response body N/A N/A N/A self finish N/A N/A req N/A N/A N/A tornado httpclient HTTPRequest url N/A N/A self request uri method N/A N/A self request method body N/A N/A self request body headers N/A N/A self request headers follow_redirects False allow_nonstandard_methods True N/A client N/A N/A N/A tornado httpclient AsyncHTTPClient N/A N/A N/A N/A N/A client fetch req handle_response N/A N/A N/A N/A N/A tornado httpclient HTTPError N/A e N/A N/A N/A N/A hasattr e response N/A e response N/A N/A N/A N/A self handle_response N/A e response N/A N/A N/A N/A self set_status 500 N/A N/A N/A self write N/A Internal server error:
 N/A str e N/A N/A N/A self finish N/A N/A N/A tornado web asynchronous post N/A N/A self N/A N/A N/A N/A N/A self get N/A N/A N/A tornado web asynchronous connect N/A N/A self N/A N/A N/A N/A host port N/A N/A N/A N/A self request uri split : N/A client N/A N/A N/A self request connection stream read_from_client N/A N/A data N/A N/A N/A N/A N/A upstream write data N/A read_from_upstream N/A N/A data N/A N/A N/A N/A N/A client write data N/A client_close N/A N/A data N/A None N/A N/A N/A N/A upstream closed N/A N/A N/A data N/A N/A N/A N/A upstream write data N/A N/A N/A upstream close N/A upstream_close N/A N/A data N/A None N/A N/A N/A N/A client closed N/A N/A N/A data N/A N/A N/A N/A client write data N/A N/A N/A client close N/A start_tunnel N/A N/A N/A N/A N/A N/A N/A client read_until_close client_close read_from_client N/A N/A N/A upstream read_until_close upstream_close read_from_upstream N/A N/A N/A client write HTTP/1.0 200 Connection established

 N/A N/A s N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM 0 N/A upstream N/A N/A N/A tornado iostream IOStream s N/A N/A N/A upstream connect N/A host N/A int port start_tunnel N/A N/A N/A tornado web asynchronous N/A run_proxy N/A N/A port start_ioloop N/A True N/A N/A 
    Run proxy on the specified port. If start_ioloop is True (default),
    the tornado IOLoop will be started immediately.
     N/A app N/A N/A N/A tornado web Application N/A N/A .* ProxyHandler N/A N/A N/A app listen port N/A ioloop N/A N/A N/A N/A tornado ioloop IOLoop instance N/A start_ioloop N/A N/A N/A N/A ioloop start N/A N/A N/A __name__ __main__ N/A N/A port 8888 N/A N/A N/A len N/A sys argv 1 N/A N/A port N/A int N/A N/A sys argv N/A 1 N/A N/A Starting HTTP proxy on port %d port N/A N/A run_proxy port