Home / Function/ simpleRequestAllowPrivateNetwork() — netty Function Reference

simpleRequestAllowPrivateNetwork() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 494–505

    @Test
    public void simpleRequestAllowPrivateNetwork() {
        final CorsConfig config = forOrigin("http://localhost:8888").allowPrivateNetwork().build();
        final EmbeddedChannel channel = new EmbeddedChannel(new CorsHandler(config));
        final FullHttpRequest request = optionsRequest("http://localhost:8888", "", null);
        request.headers().set(ACCESS_CONTROL_REQUEST_PRIVATE_NETWORK, "true");
        assertFalse(channel.writeInbound(request));
        final HttpResponse response = channel.readOutbound();

        assertEquals("true", response.headers().get(ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK));
        assertTrue(ReferenceCountUtil.release(response));
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free