Home / Function/ testHostIPv6FormRequestTargetHandled() — netty Function Reference

testHostIPv6FormRequestTargetHandled() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/HttpToHttp2ConnectionHandlerTest.java lines 294–310

    @Test
    public void testHostIPv6FormRequestTargetHandled() throws Exception {
        // Valid according to
        // https://tools.ietf.org/html/rfc7230#section-2.7.1 -> https://tools.ietf.org/html/rfc3986#section-3.2.2
        bootstrapEnv(2, 1, 0);
        final FullHttpRequest request = new DefaultFullHttpRequest(HTTP_1_1, GET, "/");
        final HttpHeaders httpHeaders = request.headers();
        httpHeaders.setInt(HttpConversionUtil.ExtensionHeaderNames.STREAM_ID.text(), 5);
        httpHeaders.set(HttpHeaderNames.HOST, "[::1]:80");
        httpHeaders.set(HttpConversionUtil.ExtensionHeaderNames.SCHEME.text(), "http");
        final Http2Headers http2Headers =
                new DefaultHttp2Headers().method(new AsciiString("GET")).path(new AsciiString("/"))
                .scheme(new AsciiString("http")).authority(new AsciiString("[::1]:80"));

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

Domain

Subdomains

Frequently Asked Questions

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