At the moment io.undertow.io.Sender interface has a method to transfer content from a specified file:
/** * Transfers all content from the specified file * * @param channel the file channel to transfer * @param callback The callback */ void transferFrom(final FileChannel channel, final IoCallback callback);
This request is to add a method to Sender interface to transfer content from java.nio.channels.ReadableByteChannel:
/** * Transfers all content from the specified readable channel * * @param channel the readable byte channel to transfer * @param callback The callback */ void transferFrom(final ReadableByteChannel channel, final IoCallback callback);