ExecutionContext to be used for all Future continuations WARNING: The ExecutionContext should trampoline or risk possibly unhandled stack overflows
Check Connection header and add applicable headers to response
Process[Task, ByteVector] and a function used to drain the line if terminated early.
ByteBuffer to use in parsing.
If the other end hangs up, this is the condition used in the Process for termination. The desired result will differ between Client and Server as the former can interpret and Command.EOF as the end of the body while a server cannot.
Cleans out any remaining body from the parser
Called when a fatal error has occurred The method logs an error and shuts down the stage, sending the error outbound
Get the proper body encoder based on the message headers, adding the appropriate Connection and Transfer-Encoding headers along the way
Get the proper body encoder based on the message headers