Module Import alias Import alias Import alias ImportFrom alias identifier Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Import alias identifier Import alias TryExcept body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr If CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str orelse Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Assign AttributeStore NameLoad attr NameLoad If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str ExceptHandler body Raise Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Raise Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad orelse Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr BoolOpOr CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str BoolOpAnd CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore ListLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str orelse Assign NameStore ListLoad If CompareNotEq AttributeLoad NameLoad attr Str body If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Pass orelse Assign NameStore NameLoad For NameStore BinOpAdd NameLoad ListLoad Str Str body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Break handlers ExceptHandler type NameLoad body Pass If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr Return BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A N/A gzip N/A zlib N/A cStringIO base64 encodestring b64encode N/A logging N/A dpkt_http_replacement dpkt_http mediatype MediaType N/A settings N/A common http N/A message N/A N/A N/A N/A BeautifulSoup UnicodeDammit N/A N/A N/A ImportError N/A BeautifulSoup UnicodeDammit N/A N/A N/A ImportError N/A N/A UnicodeDammit None N/A N/A N/A log warning Can't find BeautifulSoup, unicode is more likely to be misinterpreted Response N/A N/A message Message N/A N/A 
    HTTP response.
    Members:
    * mediaType: mediatype.MediaType, constructed from content-type
    * mimeType: string mime type of returned data
    * body: http decoded body data, otherwise unmodified
    * text: body text, unicoded if possible, otherwise base64 encoded
    * encoding: 'base64' if self.text is base64 encoded binary data, else None
    * compression: string, compression type
    * original_encoding: string, original text encoding/charset/whatever
    * body_length: int, length of body, uncompressed if possible/applicable
    * compression_amount: int or None, difference between lengths of
      uncompressed data and raw data. None if no compression or we're not sure
     __init__ N/A N/A self tcpdir pointer N/A N/A N/A N/A N/A N/A message Message __init__ self tcpdir pointer N/A dpkt_http Response N/A N/A content-type N/A N/A self msg headers N/A N/A N/A self mediaType N/A MediaType N/A N/A N/A self msg headers N/A content-type N/A N/A N/A self mediaType N/A MediaType application/x-unknown-content-type N/A N/A self mimeType N/A N/A N/A self mediaType mimeType N/A N/A self body_length N/A len N/A N/A self msg body N/A N/A self compression_amount None N/A N/A self text None N/A N/A settings drop_bodies N/A N/A N/A N/A self clear_body N/A N/A N/A N/A self handle_compression N/A N/A N/A self handle_text N/A clear_body N/A N/A self N/A N/A N/A 
        Clear response body to save memory

        http.Flow has to do most of the work (after any other responses are
        parsed), here we just want to get rid of any references.
         N/A N/A self body N/A self raw_body None N/A N/A N/A self msg body None N/A handle_compression N/A N/A self N/A N/A N/A 
        Sets self.body to the http decoded response data. Sets compression to
        the name of the compresson type.
         N/A N/A content-encoding N/A N/A self msg headers N/A N/A encoding N/A N/A N/A N/A N/A self msg headers N/A content-encoding lower N/A N/A self compression encoding N/A N/A N/A encoding gzip N/A encoding x-gzip N/A N/A N/A N/A gzipfile N/A N/A gzip GzipFile fileobj N/A N/A cStringIO StringIO N/A self raw_body N/A N/A self body N/A N/A gzipfile read N/A N/A N/A N/A zlib error N/A N/A N/A N/A http DecodingError zlib failed to gunzip HTTP data N/A N/A N/A N/A N/A http DecodingError failed to gunzip HTTP data, don't know why N/A N/A N/A encoding deflate N/A N/A N/A N/A N/A self body N/A N/A zlib decompress N/A self raw_body -15 N/A N/A N/A N/A zlib error N/A N/A N/A N/A http DecodingError zlib failed to undeflate HTTP data N/A N/A N/A N/A encoding compress N/A encoding x-compress N/A N/A N/A self body N/A self raw_body N/A N/A N/A encoding identity N/A N/A N/A self body N/A self raw_body N/A N/A N/A sdch encoding N/A N/A N/A self body N/A self raw_body N/A N/A N/A N/A http DecodingError N/A unknown content-encoding token:  encoding N/A N/A N/A self compression identity N/A N/A self body N/A self raw_body N/A N/A self body_length N/A len N/A self body N/A N/A self compression_amount N/A N/A self body_length N/A len N/A self raw_body N/A handle_text N/A N/A self N/A N/A N/A 
        Takes care of converting body text to unicode, if its text at all.
        Sets self.original_encoding to original char encoding, and converts body
        to unicode if possible. Must come after handle_compression, and after
        self.mediaType is valid.
         N/A N/A self encoding None N/A N/A N/A self mediaType N/A N/A N/A N/A self mediaType type text N/A N/A N/A N/A self mediaType type application N/A xml N/A N/A self mediaType subtype N/A N/A N/A charset N/A N/A self mediaType params N/A N/A override_encodings N/A N/A N/A N/A self mediaType params N/A charset N/A N/A override_encodings N/A N/A N/A N/A self body N/A N/A UnicodeDammit N/A N/A dammit N/A UnicodeDammit N/A self body override_encodings N/A N/A dammit unicode N/A N/A N/A self text N/A dammit unicode N/A N/A self originalEncoding N/A dammit originalEncoding N/A N/A N/A N/A u None N/A e N/A override_encodings N/A utf8 iso-8859-1 N/A N/A N/A N/A u N/A N/A N/A self body decode e strict N/A N/A self originalEncoding e N/A N/A N/A N/A UnicodeError N/A N/A N/A N/A u N/A N/A u N/A N/A N/A self body decode utf8 replace N/A N/A self originalEncoding None N/A N/A self text N/A u None N/A N/A N/A self text N/A b64encode N/A self body N/A N/A self encoding base64 N/A raw_body_length N/A N/A self N/A N/A N/A N/A N/A self compression_amount None N/A N/A N/A self body_length N/A N/A N/A self body_length N/A self compression_amount N/A property N/A