Home / Function/ PrefaceDecoder() — netty Function Reference

PrefaceDecoder() — netty Function Reference

Architecture documentation for the PrefaceDecoder() function in Http2ConnectionHandler.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  73375026_56ea_312c_baa4_40200ab8c7dd["PrefaceDecoder()"]
  83642a58_aebe_1c6a_ae68_9c2017752662["PrefaceDecoder"]
  73375026_56ea_312c_baa4_40200ab8c7dd -->|defined in| 83642a58_aebe_1c6a_ae68_9c2017752662
  ca10094c_9de4_bcf4_308b_1cc8f0f6b72b["handlerAdded()"]
  ca10094c_9de4_bcf4_308b_1cc8f0f6b72b -->|calls| 73375026_56ea_312c_baa4_40200ab8c7dd
  8dee1709_f11e_ea83_5fa1_f29f61281e95["channelActive()"]
  8dee1709_f11e_ea83_5fa1_f29f61281e95 -->|calls| 73375026_56ea_312c_baa4_40200ab8c7dd
  fedde1dc_4baf_9ad9_9fa9_576c4ae34102["sendPreface()"]
  73375026_56ea_312c_baa4_40200ab8c7dd -->|calls| fedde1dc_4baf_9ad9_9fa9_576c4ae34102
  style 73375026_56ea_312c_baa4_40200ab8c7dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java lines 230–235

        PrefaceDecoder(ChannelHandlerContext ctx) throws Exception {
            clientPrefaceString = clientPrefaceString(encoder.connection());
            // This handler was just added to the context. In case it was handled after
            // the connection became active, send the connection preface now.
            sendPreface(ctx);
        }

Domain

Subdomains

Frequently Asked Questions

What does PrefaceDecoder() do?
PrefaceDecoder() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java.
Where is PrefaceDecoder() defined?
PrefaceDecoder() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java at line 230.
What does PrefaceDecoder() call?
PrefaceDecoder() calls 1 function(s): sendPreface.
What calls PrefaceDecoder()?
PrefaceDecoder() is called by 2 function(s): channelActive, handlerAdded.

Analyze Your Own Codebase

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

Try Supermodel Free