Home / Function/ Http2Headers() — netty Function Reference

Http2Headers() — netty Function Reference

Architecture documentation for the Http2Headers() function in DefaultHttp2HeadersDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6abf07b0_d448_83c3_0c1a_989d9677297a["Http2Headers()"]
  b3d1a32b_cb45_8f74_3a9b_931797e1d4ac["DefaultHttp2HeadersDecoder"]
  6abf07b0_d448_83c3_0c1a_989d9677297a -->|defined in| b3d1a32b_cb45_8f74_3a9b_931797e1d4ac
  style 6abf07b0_d448_83c3_0c1a_989d9677297a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2HeadersDecoder.java lines 154–170

    @Override
    public Http2Headers decodeHeaders(int streamId, ByteBuf headerBlock) throws Http2Exception {
        try {
            final Http2Headers headers = newHeaders();
            hpackDecoder.decode(streamId, headerBlock, headers, validateHeaders);
            headerArraySizeAccumulator = HEADERS_COUNT_WEIGHT_NEW * headers.size() +
                                         HEADERS_COUNT_WEIGHT_HISTORICAL * headerArraySizeAccumulator;
            return headers;
        } catch (Http2Exception e) {
            throw e;
        } catch (Throwable e) {
            // Default handler for any other types of errors that may have occurred. For example,
            // the Header builder throws IllegalArgumentException if the key or value was invalid
            // for any reason (e.g. the key was an invalid pseudo-header).
            throw connectionError(COMPRESSION_ERROR, e, "Error decoding headers: %s", e.getMessage());
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does Http2Headers() do?
Http2Headers() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2HeadersDecoder.java.
Where is Http2Headers() defined?
Http2Headers() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2HeadersDecoder.java at line 154.

Analyze Your Own Codebase

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

Try Supermodel Free