Home / Function/ verifyStandardSetting() — netty Function Reference

verifyStandardSetting() — netty Function Reference

Architecture documentation for the verifyStandardSetting() function in Http3Settings.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1a37c31e_5f5d_822d_4351_221b3d3857f2["verifyStandardSetting()"]
  2ee3db7b_3314_f934_9e31_df530c4e959e["Http3Settings"]
  1a37c31e_5f5d_822d_4351_221b3d3857f2 -->|defined in| 2ee3db7b_3314_f934_9e31_df530c4e959e
  028ec118_5c04_b046_e5a4_6b2a7c571834["Long()"]
  028ec118_5c04_b046_e5a4_6b2a7c571834 -->|calls| 1a37c31e_5f5d_822d_4351_221b3d3857f2
  style 1a37c31e_5f5d_822d_4351_221b3d3857f2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/Http3Settings.java lines 339–367

    private static void verifyStandardSetting(Http3SettingIdentifier identifier, Long value) {
        checkNotNull(value, "value");
        checkNotNull(identifier, "identifier");

        switch (identifier) {
            case HTTP3_SETTINGS_QPACK_MAX_TABLE_CAPACITY:
            case HTTP3_SETTINGS_QPACK_BLOCKED_STREAMS:
            case HTTP3_SETTINGS_MAX_FIELD_SECTION_SIZE:
                if (value < 0) {
                    throw new IllegalArgumentException("Setting 0x" + toHexString(identifier.id())
                            + " invalid: " + value + " (must be >= 0)");
                }
                break;
            case HTTP3_SETTINGS_ENABLE_CONNECT_PROTOCOL:
            case HTTP3_SETTINGS_H3_DATAGRAM:
                if (value != 0L && value != 1L) {
                    throw new IllegalArgumentException(
                            "Invalid: " + value + "for "
                                    + Http3SettingIdentifier.valueOf(String.valueOf(identifier))
                            + " (expected 0 or 1)");
                }
                break;
            default:
                if (value < 0) {
                    throw new IllegalArgumentException("Setting 0x"
                            + toHexString(identifier.id()) + " invalid: " + value);
                }
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does verifyStandardSetting() do?
verifyStandardSetting() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3Settings.java.
Where is verifyStandardSetting() defined?
verifyStandardSetting() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3Settings.java at line 339.
What calls verifyStandardSetting()?
verifyStandardSetting() is called by 1 function(s): Long.

Analyze Your Own Codebase

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

Try Supermodel Free