Home / Type/ Http2DataWriter Type — netty Architecture

Http2DataWriter Type — netty Architecture

Architecture documentation for the Http2DataWriter type/interface in Http2DataWriter.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  00e60ab1_5455_d038_4d1e_040dda5fccfb["Http2DataWriter"]
  02ac7679_4f43_f5c7_5ece_5eecacb4ca54["Http2DataWriter.java"]
  00e60ab1_5455_d038_4d1e_040dda5fccfb -->|defined in| 02ac7679_4f43_f5c7_5ece_5eecacb4ca54
  style 00e60ab1_5455_d038_4d1e_040dda5fccfb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2DataWriter.java lines 25–43

public interface Http2DataWriter {
    /**
     * Writes a {@code DATA} frame to the remote endpoint. This will result in one or more
     * frames being written to the context.
     *
     * @param ctx the context to use for writing.
     * @param streamId the stream for which to send the frame.
     * @param data the payload of the frame. This will be released by this method.
     * @param padding additional bytes that should be added to obscure the true content size. Must be between 0 and
     *                256 (inclusive). A 1 byte padding is encoded as just the pad length field with value 0.
     *                A 256 byte padding is encoded as the pad length field with value 255 and 255 padding bytes
     *                appended to the end of the frame.
     * @param endStream indicates if this is the last frame to be sent for the stream.
     * @param promise the promise for the write.
     * @return the future for the write.
     */
    ChannelFuture writeData(ChannelHandlerContext ctx, int streamId,
            ByteBuf data, int padding, boolean endStream, ChannelPromise promise);
}

Frequently Asked Questions

What is the Http2DataWriter type?
Http2DataWriter is a type/interface in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2DataWriter.java.
Where is Http2DataWriter defined?
Http2DataWriter is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2DataWriter.java at line 25.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free