Home / Function/ setAllowMethods() — netty Function Reference

setAllowMethods() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsHandler.java lines 231–233

    private void setAllowMethods(final HttpResponse response) {
        response.headers().set(HttpHeaderNames.ACCESS_CONTROL_ALLOW_METHODS, config.allowedRequestMethods());
    }

Subdomains

Called By

Frequently Asked Questions

What does setAllowMethods() do?
setAllowMethods() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsHandler.java.
Where is setAllowMethods() defined?
setAllowMethods() is defined in codec-http/src/main/java/io/netty/handler/codec/http/cors/CorsHandler.java at line 231.
What calls setAllowMethods()?
setAllowMethods() 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