Home / Function/ setAllowPrivateNetwork() — netty Function Reference

setAllowPrivateNetwork() — netty Function Reference

Architecture documentation for the setAllowPrivateNetwork() function in CorsHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7363a3a0_6f33_0bcf_ea4e_e1be0ab5866f["setAllowPrivateNetwork()"]
  48d2af19_d0e9_a2f5_8280_607eb2335be4["CorsHandler"]
  7363a3a0_6f33_0bcf_ea4e_e1be0ab5866f -->|defined in| 48d2af19_d0e9_a2f5_8280_607eb2335be4
  a3528954_dd41_114c_963f_7d9056bea918["handlePreflight()"]
  a3528954_dd41_114c_963f_7d9056bea918 -->|calls| 7363a3a0_6f33_0bcf_ea4e_e1be0ab5866f
  style 7363a3a0_6f33_0bcf_ea4e_e1be0ab5866f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsHandler.java lines 243–251

    private void setAllowPrivateNetwork(final HttpResponse response) {
        if (request.headers().contains(HttpHeaderNames.ACCESS_CONTROL_REQUEST_PRIVATE_NETWORK)) {
            if (config.isPrivateNetworkAllowed()) {
                response.headers().set(HttpHeaderNames.ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK, "true");
            } else {
                response.headers().set(HttpHeaderNames.ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK, "false");
            }
        }
    }

Subdomains

Called By

Frequently Asked Questions

What does setAllowPrivateNetwork() do?
setAllowPrivateNetwork() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsHandler.java.
Where is setAllowPrivateNetwork() defined?
setAllowPrivateNetwork() is defined in codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsHandler.java at line 243.
What calls setAllowPrivateNetwork()?
setAllowPrivateNetwork() is called by 1 function(s): handlePreflight.

Analyze Your Own Codebase

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

Try Supermodel Free