Home / Function/ initPushStream() — netty Function Reference

initPushStream() — netty Function Reference

Architecture documentation for the initPushStream() function in Http3UnidirectionalStreamInboundClientHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8ce0ed3d_651f_0799_f995_4c792cda21c9["initPushStream()"]
  813bb225_c44b_64db_35ef_faef806aa375["Http3UnidirectionalStreamInboundClientHandler"]
  8ce0ed3d_651f_0799_f995_4c792cda21c9 -->|defined in| 813bb225_c44b_64db_35ef_faef806aa375
  style 8ce0ed3d_651f_0799_f995_4c792cda21c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/Http3UnidirectionalStreamInboundClientHandler.java lines 45–61

    @Override
    void initPushStream(ChannelHandlerContext ctx, long pushId) {
        // See https://tools.ietf.org/html/draft-ietf-quic-http-32#section-4.4
        Long maxPushId = remoteControlStreamHandler.sentMaxPushId();
        if (maxPushId == null) {
            Http3CodecUtils.connectionError(ctx, Http3ErrorCode.H3_ID_ERROR,
                    "Received push stream before sending MAX_PUSH_ID frame.", false);
        } else if (maxPushId < pushId) {
            Http3CodecUtils.connectionError(ctx, Http3ErrorCode.H3_ID_ERROR,
                    "Received push stream with ID " + pushId + " greater than the max push ID " + maxPushId
                            + '.', false);
        } else {
            // Replace this handler with the actual push stream handlers.
            final ChannelHandler pushStreamHandler = pushStreamHandlerFactory.apply(pushId);
            ctx.pipeline().replace(this, null, pushStreamHandler);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does initPushStream() do?
initPushStream() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3UnidirectionalStreamInboundClientHandler.java.
Where is initPushStream() defined?
initPushStream() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3UnidirectionalStreamInboundClientHandler.java at line 45.

Analyze Your Own Codebase

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

Try Supermodel Free