Home / Function/ verifyContentLength() — netty Function Reference

verifyContentLength() — netty Function Reference

Architecture documentation for the verifyContentLength() function in Http3RequestStreamValidationUtils.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  795a9638_e016_deb7_d77c_ea1d7ae4c93c["verifyContentLength()"]
  61b512bc_7ad6_0004_be8c_64e50c687fe4["Http3RequestStreamValidationUtils"]
  795a9638_e016_deb7_d77c_ea1d7ae4c93c -->|defined in| 61b512bc_7ad6_0004_be8c_64e50c687fe4
  b1365829_7e75_f2dd_79f7_f9bb91ae2db3["validateDataFrameRead()"]
  b1365829_7e75_f2dd_79f7_f9bb91ae2db3 -->|calls| 795a9638_e016_deb7_d77c_ea1d7ae4c93c
  7e5ce038_7a9d_00fc_047f_e9bc9d79650d["validateOnStreamClosure()"]
  7e5ce038_7a9d_00fc_047f_e9bc9d79650d -->|calls| 795a9638_e016_deb7_d77c_ea1d7ae4c93c
  style 795a9638_e016_deb7_d77c_ea1d7ae4c93c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/Http3RequestStreamValidationUtils.java lines 147–157

    private static long verifyContentLength(int length, long expectedLength, long seenLength, boolean end,
                                            boolean clientHeadRequest) throws Http3Exception {
        seenLength += length;
        if (expectedLength != -1 && (seenLength > expectedLength ||
                (!clientHeadRequest && end && seenLength != expectedLength))) {
            throw new Http3Exception(
                    H3_MESSAGE_ERROR, "Expected content-length " + expectedLength +
                    " != " + seenLength + ".");
        }
        return seenLength;
    }

Domain

Subdomains

Frequently Asked Questions

What does verifyContentLength() do?
verifyContentLength() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3RequestStreamValidationUtils.java.
Where is verifyContentLength() defined?
verifyContentLength() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3RequestStreamValidationUtils.java at line 147.
What calls verifyContentLength()?
verifyContentLength() is called by 2 function(s): validateDataFrameRead, validateOnStreamClosure.

Analyze Your Own Codebase

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

Try Supermodel Free