Http2Headers() — netty Function Reference
Architecture documentation for the Http2Headers() function in HelloWorldHttp2Handler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f75c6930_d0c5_71df_6c84_928ae87de9ce["Http2Headers()"] 679cb2c0_10f0_ca95_5e26_6209ae084a9f["HelloWorldHttp2Handler"] f75c6930_d0c5_71df_6c84_928ae87de9ce -->|defined in| 679cb2c0_10f0_ca95_5e26_6209ae084a9f style f75c6930_d0c5_71df_6c84_928ae87de9ce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/helloworld/server/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
Defined In
Source
Frequently Asked Questions
What does Http2Headers() do?
Http2Headers() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/server/HelloWorldHttp2Handler.java.
Where is Http2Headers() defined?
Http2Headers() is defined in example/src/main/java/io/netty/example/http2/helloworld/server/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