Home / Function/ HttpMethod() — netty Function Reference

HttpMethod() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d07759a5_d49e_884b_5ea2_b284d842915d["HttpMethod()"]
  9c3b38b3_8817_af7c_c644_2156c607b049["HttpMethod"]
  d07759a5_d49e_884b_5ea2_b284d842915d -->|defined in| 9c3b38b3_8817_af7c_c644_2156c607b049
  style d07759a5_d49e_884b_5ea2_b284d842915d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpMethod.java lines 96–109

    public static HttpMethod valueOf(String name) {
        switch (name) {
            case "OPTIONS": return HttpMethod.OPTIONS;
            case "GET":     return HttpMethod.GET;
            case "HEAD":    return HttpMethod.HEAD;
            case "POST":    return HttpMethod.POST;
            case "PUT":     return HttpMethod.PUT;
            case "PATCH":   return HttpMethod.PATCH;
            case "DELETE":  return HttpMethod.DELETE;
            case "TRACE":   return HttpMethod.TRACE;
            case "CONNECT": return HttpMethod.CONNECT;
            default:        return new HttpMethod(name);
        }
    }

Subdomains

Frequently Asked Questions

What does HttpMethod() do?
HttpMethod() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpMethod.java.
Where is HttpMethod() defined?
HttpMethod() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpMethod.java at line 96.

Analyze Your Own Codebase

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

Try Supermodel Free