Called by onHeadersComplete(). This function allows downstream and upstream to do any setup (like preparing a handler) when headers are first received from the remote side on a given transaction.
Called when a new message is seen while parsing the ingress @param stream The stream ID @param msg A newly allocated HTTPMessage
Called when all the headers of an ingress message have been parsed @param stream The stream ID @param msg The message @param size Size of the ingress header
Called for each block of message body data @param stream The stream ID @param chain One or more buffers of body data. The codec will remove any protocol framing, such as HTTP/1.1 chunk headers, from the buffers before calling this function. @param padding Number of pad bytes that came with the data segment
Called for each HTTP chunk header.
Called when the terminating CRLF is received to end a chunk of HTTP body data.
Called at end of a message (including body and trailers, if applicable) @param stream The stream ID @param upgrade Whether the connection has been upgraded to another protocol.
Called when a parsing or protocol error has occurred @param stream The stream ID @param error Description of the error @param newTxn true if onMessageBegin has not been called for txn
Called when the peer has asked to shut down a stream immediately. @param stream The stream ID @param code The code the stream was aborted with @note Not applicable to all protocols.
Called upon receipt of a valid protocol switch. Return false if protocol switch could not be completed.
HTTPSession will not send any read event