testHeadersOnlyRequest() — netty Function Reference
Architecture documentation for the testHeadersOnlyRequest() function in HttpToHttp2ConnectionHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 25dbed58_6b69_23fc_d9b3_83b2d641af5d["testHeadersOnlyRequest()"] 919b1457_fbee_0bc0_c865_945a03b794b1["HttpToHttp2ConnectionHandlerTest"] 25dbed58_6b69_23fc_d9b3_83b2d641af5d -->|defined in| 919b1457_fbee_0bc0_c865_945a03b794b1 5a522eb6_40fe_3d12_39a2_24e8e6f43e87["bootstrapEnv()"] 25dbed58_6b69_23fc_d9b3_83b2d641af5d -->|calls| 5a522eb6_40fe_3d12_39a2_24e8e6f43e87 0b997372_29fd_e986_1830_583e5203b661["verifyHeadersOnly()"] 25dbed58_6b69_23fc_d9b3_83b2d641af5d -->|calls| 0b997372_29fd_e986_1830_583e5203b661 style 25dbed58_6b69_23fc_d9b3_83b2d641af5d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/HttpToHttp2ConnectionHandlerTest.java lines 130–151
@Test
public void testHeadersOnlyRequest() throws Exception {
bootstrapEnv(2, 1, 0);
final FullHttpRequest request = new DefaultFullHttpRequest(HTTP_1_1, GET,
"http://my-user_name@www.example.org:5555/example");
final HttpHeaders httpHeaders = request.headers();
httpHeaders.setInt(HttpConversionUtil.ExtensionHeaderNames.STREAM_ID.text(), 5);
httpHeaders.set(HttpHeaderNames.HOST, "my-user_name@www.example.org:5555");
httpHeaders.set(HttpConversionUtil.ExtensionHeaderNames.SCHEME.text(), "http");
httpHeaders.add(of("foo"), of("goo"));
httpHeaders.add(of("foo"), of("goo2"));
httpHeaders.add(of("foo2"), of("goo2"));
final Http2Headers http2Headers =
new DefaultHttp2Headers().method(new AsciiString("GET")).path(new AsciiString("/example"))
.authority(new AsciiString("www.example.org:5555")).scheme(new AsciiString("http"))
.add(new AsciiString("foo"), new AsciiString("goo"))
.add(new AsciiString("foo"), new AsciiString("goo2"))
.add(new AsciiString("foo2"), new AsciiString("goo2"));
ChannelPromise writePromise = newPromise();
verifyHeadersOnly(http2Headers, writePromise, clientChannel.writeAndFlush(request, writePromise));
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testHeadersOnlyRequest() do?
testHeadersOnlyRequest() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HttpToHttp2ConnectionHandlerTest.java.
Where is testHeadersOnlyRequest() defined?
testHeadersOnlyRequest() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HttpToHttp2ConnectionHandlerTest.java at line 130.
What does testHeadersOnlyRequest() call?
testHeadersOnlyRequest() calls 2 function(s): bootstrapEnv, verifyHeadersOnly.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free