You would need to save the last byte during each call to write or trnsfer, then when terminateWrites (or writeFinal) is called you know the saved byte is the last one.

Stuart

On Wed, Nov 1, 2017 at 10:06 AM, paroczizs . <paroczizs@gmail.com> wrote:
Hi Undertow-dev,

is it possible to identify the last byte(s) of the request and response streams in the conduits?

Regards, Zsolt 

Mentes a vírusoktól. www.avast.com

_______________________________________________
undertow-dev mailing list
undertow-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev