Home / Function/ CorsConfig() — netty Function Reference

CorsConfig() — netty Function Reference

Architecture documentation for the CorsConfig() function in CorsConfigBuilder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d9452a70_7818_c51e_7cc0_e9a918d7c468["CorsConfig()"]
  b18a7553_8e93_1213_6e76_c793a03529c2["CorsConfigBuilder"]
  d9452a70_7818_c51e_7cc0_e9a918d7c468 -->|defined in| b18a7553_8e93_1213_6e76_c793a03529c2
  458ea0d9_fcb3_e67f_174a_81d7bb58e8ee["ConstantValueGenerator()"]
  d9452a70_7818_c51e_7cc0_e9a918d7c468 -->|calls| 458ea0d9_fcb3_e67f_174a_81d7bb58e8ee
  style d9452a70_7818_c51e_7cc0_e9a918d7c468 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsConfigBuilder.java lines 374–380

    public CorsConfig build() {
        if (preflightHeaders.isEmpty() && !noPreflightHeaders) {
            preflightHeaders.put(HttpHeaderNames.DATE, DateValueGenerator.INSTANCE);
            preflightHeaders.put(HttpHeaderNames.CONTENT_LENGTH, new ConstantValueGenerator("0"));
        }
        return new CorsConfig(this);
    }

Subdomains

Frequently Asked Questions

What does CorsConfig() do?
CorsConfig() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsConfigBuilder.java.
Where is CorsConfig() defined?
CorsConfig() is defined in codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsConfigBuilder.java at line 374.
What does CorsConfig() call?
CorsConfig() calls 1 function(s): ConstantValueGenerator.

Analyze Your Own Codebase

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

Try Supermodel Free