Module Import alias Import alias ImportFrom alias alias TryExcept body ImportFrom alias Import alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str ImportFrom alias alias alias alias Assign NameStore TupleLoad Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore ListLoad If BoolOpAnd NameLoad CompareIsNot NameLoad NameLoad body For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore BinOpMod Str Call AttributeLoad Str attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return Call NameLoad BinOpAdd Call AttributeLoad Str attr NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIn NameLoad TupleLoad Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num attr If CompareIn NameLoad NameLoad body Assign NameStore NameLoad For NameStore TupleLoad Str Str body If CompareIn NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad orelse Assign NameStore NameLoad Assign SubscriptStore NameLoad Index Str Str Return TupleLoad NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Assign NameStore Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad BinOpMod Str Call NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Break Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad BinOpAdd Call AttributeLoad Str attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A io N/A urlparse http_parser.http ParserError NoMoreData N/A N/A lxml etree N/A lxml.html N/A N/A N/A ImportError N/A N/A N/A ImportError lxml isn't installed

        pip install lxml
 util headers_lines normalize send_body absolute_http_url_re N/A HTML_CTYPES N/A text/html application/xhtml+xml application/xml rewrite_headers N/A N/A parser location values N/A None N/A N/A headers N/A N/A parser headers N/A values N/A values N/A N/A new_headers N/A N/A N/A values N/A values None N/A N/A N/A hname hvalue values N/A N/A N/A headers N/A hname hvalue N/A httpver N/A HTTP/%s N/A N/A . join N/A map str N/A N/A parser version N/A new_headers N/A N/A %s %s %s
 N/A N/A N/A parser method location httpver N/A N/A N/A new_headers extend N/A N/A %s: %s
 N/A hname hvalue N/A N/A hname hvalue N/A N/A headers items N/A N/A bytes N/A N/A N/A join new_headers N/A RewriteResponse N/A object N/A __init__ N/A N/A self parser resp extra N/A N/A N/A N/A self parser parser N/A N/A self resp resp N/A N/A self extra extra N/A N/A self prefix N/A N/A extra get prefix N/A N/A N/A N/A self prefix None N/A N/A N/A self prefix endswith / N/A N/A N/A self prefix N/A N/A self prefix N/A -1 N/A N/A self base N/A extra N/A base_uri N/A N/A self local_base N/A extra N/A vhost_uri N/A rewrite_headers N/A N/A self N/A N/A N/A N/A N/A headers N/A N/A N/A self parser headers N/A N/A N/A N/A ParserError NoMoreData N/A N/A N/A False None N/A status_int N/A N/A N/A self parser status_code N/A N/A status_int N/A 301 302 303 N/A N/A location N/A N/A headers get location N/A N/A N/A location startswith N/A self base N/A N/A rel N/A %s%s N/A N/A self prefix N/A N/A N/A location split N/A self base N/A 1 N/A N/A headers N/A location N/A N/A urlparse urljoin N/A self local_base rel N/A N/A N/A N/A location startswith / N/A N/A rel N/A %s%s N/A N/A self prefix location N/A N/A headers N/A location N/A N/A urlparse urljoin N/A self local_base rel N/A N/A False N/A headers_lines N/A self parser headers N/A prefix N/A N/A N/A self extra get prefix N/A N/A N/A prefix None N/A location headers N/A N/A location N/A headers N/A location N/A N/A N/A N/A location startswith / N/A N/A location N/A /%s location N/A N/A headers N/A location N/A %s%s N/A N/A self prefix location N/A ctype N/A N/A headers get content-type N/A N/A ctype None N/A N/A ctype N/A N/A N/A N/A N/A ctype split ; 1 N/A 0 strip N/A N/A ctype HTML_CTYPES N/A N/A rewrite True N/A h N/A content-length transfer-encoding N/A N/A N/A h headers N/A N/A N/A headers N/A h N/A N/A rewrite False N/A N/A headers N/A connection close N/A N/A rewrite N/A headers_lines N/A self parser headers N/A rewrite_link N/A N/A self link N/A N/A N/A N/A N/A N/A N/A absolute_http_url_re match link N/A N/A N/A link startswith mailto: N/A N/A N/A link startswith javascript: N/A N/A link N/A normalize N/A self prefix link N/A N/A N/A N/A link startswith N/A self base N/A N/A rel N/A %s%s N/A N/A self prefix N/A N/A N/A link split N/A self base N/A 1 N/A link N/A N/A urlparse urljoin N/A self local_base rel N/A link N/A execute N/A N/A self N/A N/A N/A N/A rewrite headers N/A N/A self rewrite_headers N/A N/A headers N/A N/A msg HTTP/1.1 502 Gateway Error

 bad request. N/A N/A N/A N/A self resp send msg N/A N/A rewrite N/A N/A body N/A N/A N/A self parser body_string N/A N/A body N/A N/A rewritten_body N/A N/A html N/A N/A N/A lxml html fromstring body N/A N/A N/A html rewrite_links N/A self rewrite_link N/A absolute_path N/A %s%s N/A N/A self local_base N/A N/A N/A self extra get path N/A old_base N/A N/A html find .//base N/A base N/A N/A etree Element base N/A N/A N/A base attrib N/A href absolute_path N/A N/A old_base N/A N/A head N/A N/A html find .//head N/A N/A N/A head append base N/A rewritten_body N/A bytes N/A N/A N/A lxml html tostring html N/A N/A N/A headers extend N/A N/A Content-Length: %s
 N/A len rewritten_body N/A N/A N/A N/A self resp writeall N/A bytes N/A N/A join headers N/A stream N/A N/A io BytesIO rewritten_body N/A True N/A N/A data N/A N/A stream read N/A io DEFAULT_BUFFER_SIZE N/A N/A data N/A N/A N/A N/A N/A N/A self resp writeall data N/A N/A N/A N/A N/A self resp writeall N/A bytes N/A N/A N/A join headers N/A body N/A N/A N/A self parser body_file N/A N/A send_body N/A self resp body N/A N/A N/A self parser is_chunked N/A N/A