Home / Function/ decode() — netty Function Reference

decode() — netty Function Reference

Architecture documentation for the decode() function in HpackDecoder.java from the netty codebase.

Function java Buffer Allocators calls 7 called by 1

Entity Profile

Dependency Diagram

graph TD
  f902eae9_e223_3289_c748_bbdc7d188389["decode()"]
  929eb7d3_94e9_fa41_fd78_c76a9b499b89["HpackDecoder"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|defined in| 929eb7d3_94e9_fa41_fd78_c76a9b499b89
  9460e2c3_1533_4ca7_d387_d78b34c4564f["AsciiString()"]
  9460e2c3_1533_4ca7_d387_d78b34c4564f -->|calls| f902eae9_e223_3289_c748_bbdc7d188389
  1274ec90_f9d7_b6b8_bfb2_b9981266b7f0["Http2HeadersSink()"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|calls| 1274ec90_f9d7_b6b8_bfb2_b9981266b7f0
  337bdce6_5a9c_2e66_9239_9ac5320a87fe["decodeDynamicTableSizeUpdates()"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|calls| 337bdce6_5a9c_2e66_9239_9ac5320a87fe
  3d97e02b_938f_df8f_b607_d74819f6fa66["finish()"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|calls| 3d97e02b_938f_df8f_b607_d74819f6fa66
  43fd3d2d_f851_d2d8_22e4_2146ae2443f8["appendToHeaderList()"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|calls| 43fd3d2d_f851_d2d8_22e4_2146ae2443f8
  9ddcd0d7_f2a7_3eb8_850c_c3ab8a1f637f["length()"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|calls| 9ddcd0d7_f2a7_3eb8_850c_c3ab8a1f637f
  d295d5e9_5003_76d8_2213_aa4c1a3817e0["decodeULE128()"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|calls| d295d5e9_5003_76d8_2213_aa4c1a3817e0
  b66cbe7c_5b8d_72cf_4540_be29fac4d7d8["insertHeader()"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|calls| b66cbe7c_5b8d_72cf_4540_be29fac4d7d8
  style f902eae9_e223_3289_c748_bbdc7d188389 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java lines 126–137

    void decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders) throws Http2Exception {
        Http2HeadersSink sink = new Http2HeadersSink(
                streamId, headers, maxHeaderListSize, validateHeaders);
        // Check for dynamic table size updates, which must occur at the beginning:
        // https://www.rfc-editor.org/rfc/rfc7541.html#section-4.2
        decodeDynamicTableSizeUpdates(in);
        decode(in, sink);

        // Now that we've read all of our headers we can perform the validation steps. We must
        // delay throwing until this point to prevent dynamic table corruption.
        sink.finish();
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does decode() do?
decode() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java.
Where is decode() defined?
decode() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java at line 126.
What does decode() call?
decode() calls 7 function(s): Http2HeadersSink, appendToHeaderList, decodeDynamicTableSizeUpdates, decodeULE128, finish, insertHeader, length.
What calls decode()?
decode() is called by 1 function(s): AsciiString.

Analyze Your Own Codebase

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

Try Supermodel Free