Package io.undertow.httpcore
Interface OutputChannel
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
HttpExchangeBase
-
Method Summary
Modifier and TypeMethodDescription<T> voidwriteAsync(io.netty.buffer.ByteBuf data, boolean last, IoCallback<T> callback, T context) default voidwriteAsync(String data) Writes the given UTF-8 data and ends the exchangedefault voidwriteAsync(String data, Charset charset) Writes the given data in the provided charset and ends the exchangedefault <T> voidwriteAsync(String data, Charset charset, boolean last, IoCallback<T> callback, T context) Writes the given data in the provided charset and invokes the provided callback on completionvoidwriteBlocking(io.netty.buffer.ByteBuf data, boolean last) Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
writeAsync
Writes the given UTF-8 data and ends the exchange- Parameters:
data- The data to write
-
writeAsync
Writes the given data in the provided charset and ends the exchange- Parameters:
data- The data to write
-
writeAsync
default <T> void writeAsync(String data, Charset charset, boolean last, IoCallback<T> callback, T context) Writes the given data in the provided charset and invokes the provided callback on completion- Parameters:
data- The data to write
-
writeAsync
-
writeBlocking
- Parameters:
data-last-- Throws:
IOException
-