Home / Function/ testNormalRequestForwarded() — netty Function Reference

testNormalRequestForwarded() — netty Function Reference

Architecture documentation for the testNormalRequestForwarded() function in CorsHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9793f739_0819_0a7d_5484_98404c3235c5["testNormalRequestForwarded()"]
  e946b2e4_b243_053e_5c0a_3d1a9a50042d["CorsHandlerTest"]
  9793f739_0819_0a7d_5484_98404c3235c5 -->|defined in| e946b2e4_b243_053e_5c0a_3d1a9a50042d
  style 9793f739_0819_0a7d_5484_98404c3235c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 610–631

    @Test
    public void testNormalRequestForwarded() {
        CorsConfig config = forOrigin("http://allowed").build();
        EmbeddedChannel ch = new EmbeddedChannel(new CorsHandler(config));

        FullHttpRequest req = new DefaultFullHttpRequest(HTTP_1_1, GET, "/test");
        req.headers().set(ORIGIN, "http://allowed");

        assertTrue(ch.writeInbound(req));

        LastHttpContent last = LastHttpContent.EMPTY_LAST_CONTENT;
        assertTrue(ch.writeInbound(last));

        Object firstInbound = ch.readInbound();
        Object secondInbound = ch.readInbound();

        assertNotNull(firstInbound);
        assertNotNull(secondInbound);

        assertNull(ch.readInbound());
        assertFalse(ch.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testNormalRequestForwarded() do?
testNormalRequestForwarded() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java.
Where is testNormalRequestForwarded() defined?
testNormalRequestForwarded() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java at line 610.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free