Home / Function/ testAuthorityFormRequestTargetHandled() — netty Function Reference

testAuthorityFormRequestTargetHandled() — netty Function Reference

Architecture documentation for the testAuthorityFormRequestTargetHandled() function in HttpToHttp2ConnectionHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  150b267e_aca7_3070_61a7_b0ee5348a2c9["testAuthorityFormRequestTargetHandled()"]
  919b1457_fbee_0bc0_c865_945a03b794b1["HttpToHttp2ConnectionHandlerTest"]
  150b267e_aca7_3070_61a7_b0ee5348a2c9 -->|defined in| 919b1457_fbee_0bc0_c865_945a03b794b1
  5a522eb6_40fe_3d12_39a2_24e8e6f43e87["bootstrapEnv()"]
  150b267e_aca7_3070_61a7_b0ee5348a2c9 -->|calls| 5a522eb6_40fe_3d12_39a2_24e8e6f43e87
  0b997372_29fd_e986_1830_583e5203b661["verifyHeadersOnly()"]
  150b267e_aca7_3070_61a7_b0ee5348a2c9 -->|calls| 0b997372_29fd_e986_1830_583e5203b661
  style 150b267e_aca7_3070_61a7_b0ee5348a2c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/HttpToHttp2ConnectionHandlerTest.java lines 264–276

    @Test
    public void testAuthorityFormRequestTargetHandled() throws Exception {
        bootstrapEnv(2, 1, 0);
        final FullHttpRequest request = new DefaultFullHttpRequest(HTTP_1_1, CONNECT, "http://www.example.com:80");
        final HttpHeaders httpHeaders = request.headers();
        httpHeaders.setInt(HttpConversionUtil.ExtensionHeaderNames.STREAM_ID.text(), 5);
        final Http2Headers http2Headers =
                new DefaultHttp2Headers().method(new AsciiString("CONNECT")).path(new AsciiString("/"))
                .scheme(new AsciiString("http")).authority(new AsciiString("www.example.com:80"));

        ChannelPromise writePromise = newPromise();
        verifyHeadersOnly(http2Headers, writePromise, clientChannel.writeAndFlush(request, writePromise));
    }

Domain

Subdomains

Frequently Asked Questions

What does testAuthorityFormRequestTargetHandled() do?
testAuthorityFormRequestTargetHandled() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HttpToHttp2ConnectionHandlerTest.java.
Where is testAuthorityFormRequestTargetHandled() defined?
testAuthorityFormRequestTargetHandled() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HttpToHttp2ConnectionHandlerTest.java at line 264.
What does testAuthorityFormRequestTargetHandled() call?
testAuthorityFormRequestTargetHandled() 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