Home / Function/ Http2Headers() — netty Function Reference

Http2Headers() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

testsuite-http2/src/main/java/io/netty/testsuite/http2/HelloWorldHttp2Handler.java lines 53–63

    private static Http2Headers http1HeadersToHttp2Headers(FullHttpRequest request) {
        CharSequence host = request.headers().get(HttpHeaderNames.HOST);
        Http2Headers http2Headers = new DefaultHttp2Headers()
                .method(HttpMethod.GET.asciiName())
                .path(request.uri())
                .scheme(HttpScheme.HTTP.name());
        if (host != null) {
            http2Headers.authority(host);
        }
        return http2Headers;
    }

Domain

Subdomains

Frequently Asked Questions

What does Http2Headers() do?
Http2Headers() is a function in the netty codebase, defined in testsuite-http2/src/main/java/io/netty/testsuite/http2/HelloWorldHttp2Handler.java.
Where is Http2Headers() defined?
Http2Headers() is defined in testsuite-http2/src/main/java/io/netty/testsuite/http2/HelloWorldHttp2Handler.java at line 53.

Analyze Your Own Codebase

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

Try Supermodel Free