make HttpParser, ChunkedBody and HttpParser log context before and after the current position as part of the message of a ParseException or EOFException
40 bytes of context are logged (less if not buffered)
unprintable characters including non-ASCII characters are shown escaped (\x00)
The method used for putting together the context is places in a new class MessageParser. Of course, it could be placed in a utils class.
\x00
)The method used for putting together the context is places in a new class MessageParser. Of course, it could be placed in a utils class.