public interface Http2DataWriter
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
writeData(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endStream,
ChannelPromise promise)
Writes a
DATA frame to the remote endpoint. |
ChannelFuture writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise)
DATA
frame to the remote endpoint.ctx
- the context to use for writing.streamId
- the stream for which to send the frame.data
- the payload of the frame. This will be released by this method.padding
- the amount of padding to be added to the end of the frameendStream
- indicates if this is the last frame to be sent for the stream.promise
- the promise for the write.Copyright © 2008–2015 The Netty Project. All rights reserved.