setHttp2AuthorityNullOrEmpty() — netty Function Reference
Architecture documentation for the setHttp2AuthorityNullOrEmpty() function in HttpConversionUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a452074a_dd8b_d864_f050_9e48ad8b8a70["setHttp2AuthorityNullOrEmpty()"] 90921352_eb40_1512_a9e2_d4d851815dfa["HttpConversionUtilTest"] a452074a_dd8b_d864_f050_9e48ad8b8a70 -->|defined in| 90921352_eb40_1512_a9e2_d4d851815dfa style a452074a_dd8b_d864_f050_9e48ad8b8a70 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/HttpConversionUtilTest.java lines 79–100
@Test
public void setHttp2AuthorityNullOrEmpty() {
Http2Headers headers = new DefaultHttp2Headers();
HttpConversionUtil.setHttp2Authority(null, headers);
assertNull(headers.authority());
// https://datatracker.ietf.org/doc/html/rfc9113#section-8.3.1
// Clients that generate HTTP/2 requests directly MUST use the ":authority" pseudo-header
// field to convey authority information, unless there is no authority information to convey
// (in which case it MUST NOT generate ":authority").
// An intermediary that forwards a request over HTTP/2 MUST construct an ":authority" pseudo-header
// field using the authority information from the control data of the original request, unless the
// original request's target URI does not contain authority information
// (in which case it MUST NOT generate ":authority").
assertThrows(Http2Exception.class, new Executable() {
@Override
public void execute() {
HttpConversionUtil.setHttp2Authority("", new DefaultHttp2Headers());
}
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setHttp2AuthorityNullOrEmpty() do?
setHttp2AuthorityNullOrEmpty() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HttpConversionUtilTest.java.
Where is setHttp2AuthorityNullOrEmpty() defined?
setHttp2AuthorityNullOrEmpty() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HttpConversionUtilTest.java at line 79.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free