Home / Type/ EncoderMode Type — netty Architecture

EncoderMode Type — netty Architecture

Architecture documentation for the EncoderMode type/interface in HttpPostRequestEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1d255dc1_4deb_7f43_e6b4_41c8cbfbd66a["EncoderMode"]
  4106fd73_2096_c5a3_d8ea_cf6f70536da1["HttpPostRequestEncoder.java"]
  1d255dc1_4deb_7f43_e6b4_41c8cbfbd66a -->|defined in| 4106fd73_2096_c5a3_d8ea_cf6f70536da1
  style 1d255dc1_4deb_7f43_e6b4_41c8cbfbd66a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoder.java lines 70–92

    public enum EncoderMode {
        /**
         * Legacy mode which should work for most. It is known to not work with OAUTH. For OAUTH use
         * {@link EncoderMode#RFC3986}. The W3C form recommendations this for submitting post form data.
         */
        RFC1738,

        /**
         * Mode which is more new and is used for OAUTH
         */
        RFC3986,

        /**
         * The HTML5 spec disallows mixed mode in multipart/form-data
         * requests. More concretely this means that more files submitted
         * under the same name will not be encoded using mixed mode, but
         * will be treated as distinct fields.
         *
         * Reference:
         *   https://www.w3.org/TR/html5/forms.html#multipart-form-data
         */
        HTML5
    }

Frequently Asked Questions

What is the EncoderMode type?
EncoderMode is a type/interface in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoder.java.
Where is EncoderMode defined?
EncoderMode is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoder.java at line 70.

Analyze Your Own Codebase

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

Try Supermodel Free