<div dir="ltr"><div>Hi guys,<br><br>I&#39;m looking to promote Undertow as a preferred alternative to Jetty for the Pedestal [1] framework.<br><br>One Jetty feature it relies on is the async sending of ByteBuffers and ReadableByteChannels in Jetty&#39;s impl of ServletOutputStream [2]. Two methods, in particular: sendContent(ByteBuffer, Callback) and sendContent(ReadableByteChannel, Callback).<br><br>I was hoping someone might point me in the right direction of replicating this behavior with Undertow&#39;s ServletOutputStreamImpl. It does have a write(ByteBuffer) method, but it appears to be blocking. And I was hoping there might be some XNIO abstraction for dealing with the ReadableByteChannel, perhaps some example code somewhere?<br><br></div>Any and all help/advice is appreciated!<br>Jim<br><div><br>[1]: <a href="https://github.com/pedestal/pedestal">https://github.com/pedestal/pedestal</a><br>[2]: <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-server/9.2.0.v20140526/org/eclipse/jetty/server/HttpOutput.java">http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-server/9.2.0.v20140526/org/eclipse/jetty/server/HttpOutput.java</a><br></div></div>