…ation There is now a JsonReprEncoder which attempts to call a json_repr method on each object, allowing each class to determine its JSON representation. In practice, the json_repr's are added to http.Request/Response by the har module.
...for module that actually writes HAR
It worked before. I'm not sure exactly what happened.
…factor tcp.Direction now calculates its seq start from the first seq number in its data chunks, rather than just taking self.flow.handshake.seq, which was actually pretty moronic. Also, figured out how to make the Python package system make statements like tcp.Flow valid, even though their full name is like tcp.flow.Flow
doc/comment changes, re-working http parsing in main.py, and that's basically it
…sing New architecture for HTTP request/response objects. They now grab timestamps from a TCPDirection after parsing data using dpkt.
removed cruft, implemented delayed merging (until handshake is detected). Created member functions of TCPDirection to access arrival data. those are not tested. None of it has been rigorously tested.
Sequence number variables shall be named 'seq_start' or 'seq_end'. TCPFlow will soon support streaming packets, not just a list, through an add(pkt) method.
Specifically, it was made into a free function, as was detect_handshake. A no-op detect_closing handshake has also been added