Home / Class/ HttpHeaders Class — netty Architecture

HttpHeaders Class — netty Architecture

Architecture documentation for the HttpHeaders class in HttpHeaders.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  eef4601e_05cb_22bc_6895_aa1be313a11d["HttpHeaders"]
  d095a2b9_601a_6489_044d_18a15e0213de["HttpHeaders.java"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|defined in| d095a2b9_601a_6489_044d_18a15e0213de
  54915141_f5a8_28c2_e9e8_0f990efeab2d["isKeepAlive()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| 54915141_f5a8_28c2_e9e8_0f990efeab2d
  5823450d_7baf_43eb_4514_df263a26409a["setKeepAlive()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| 5823450d_7baf_43eb_4514_df263a26409a
  04680ebe_be7b_6a58_6ac7_a497739b4f86["String()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| 04680ebe_be7b_6a58_6ac7_a497739b4f86
  1b804714_4da7_191b_cccf_d502c0a4205c["setHeader()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| 1b804714_4da7_191b_cccf_d502c0a4205c
  fe56fcd3_78f5_5c39_1f51_7ee0cfd1bf34["addHeader()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| fe56fcd3_78f5_5c39_1f51_7ee0cfd1bf34
  22e79d12_a083_c28d_7c70_451a4afc6bd3["removeHeader()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| 22e79d12_a083_c28d_7c70_451a4afc6bd3
  df9daacb_903c_0001_cf43_c8ea996824a9["clearHeaders()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| df9daacb_903c_0001_cf43_c8ea996824a9
  c28873e3_ac3f_292c_0d11_932e4386df8c["getIntHeader()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| c28873e3_ac3f_292c_0d11_932e4386df8c
  32a02a5a_fb9c_c314_bdec_372251a952ac["setIntHeader()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| 32a02a5a_fb9c_c314_bdec_372251a952ac
  d6c61e8e_a485_bbd9_62ee_5f17ac0b1c57["addIntHeader()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| d6c61e8e_a485_bbd9_62ee_5f17ac0b1c57
  933a69ae_ee54_2464_a58f_a06ec2a397a6["Date()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| 933a69ae_ee54_2464_a58f_a06ec2a397a6
  ff2912cf_628a_fc7a_378a_d7beb7666ca5["setDateHeader()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| ff2912cf_628a_fc7a_378a_d7beb7666ca5
  fca21ccc_d27a_8ff2_deb7_24f24aa4f077["addDateHeader()"]
  eef4601e_05cb_22bc_6895_aa1be313a11d -->|method| fca21ccc_d27a_8ff2_deb7_24f24aa4f077

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaders.java lines 48–1705

public abstract class HttpHeaders implements Iterable<Map.Entry<String, String>> {
    /**
     * @deprecated Use {@link EmptyHttpHeaders#INSTANCE}.
     * <p>
     * The instance is instantiated here to break the cyclic static initialization between {@link EmptyHttpHeaders} and
     * {@link HttpHeaders}. The issue is that if someone accesses {@link EmptyHttpHeaders#INSTANCE} before
     * {@link HttpHeaders#EMPTY_HEADERS} then {@link HttpHeaders#EMPTY_HEADERS} will be {@code null}.
     */
    @Deprecated
    public static final HttpHeaders EMPTY_HEADERS = EmptyHttpHeaders.instance();

    /**
     * @deprecated Use {@link HttpHeaderNames} instead.
     *
     * Standard HTTP header names.
     */
    @Deprecated
    public static final class Names {
        /**
         * {@code "Accept"}
         */
        public static final String ACCEPT = "Accept";
        /**
         * {@code "Accept-Charset"}
         */
        public static final String ACCEPT_CHARSET = "Accept-Charset";
        /**
         * {@code "Accept-Encoding"}
         */
        public static final String ACCEPT_ENCODING = "Accept-Encoding";
        /**
         * {@code "Accept-Language"}
         */
        public static final String ACCEPT_LANGUAGE = "Accept-Language";
        /**
         * {@code "Accept-Ranges"}
         */
        public static final String ACCEPT_RANGES = "Accept-Ranges";
        /**
         * {@code "Accept-Patch"}
         */
        public static final String ACCEPT_PATCH = "Accept-Patch";
        /**
         * {@code "Access-Control-Allow-Credentials"}
         */
        public static final String ACCESS_CONTROL_ALLOW_CREDENTIALS = "Access-Control-Allow-Credentials";
        /**
         * {@code "Access-Control-Allow-Headers"}
         */
        public static final String ACCESS_CONTROL_ALLOW_HEADERS = "Access-Control-Allow-Headers";
        /**
         * {@code "Access-Control-Allow-Methods"}
         */
        public static final String ACCESS_CONTROL_ALLOW_METHODS = "Access-Control-Allow-Methods";
        /**
         * {@code "Access-Control-Allow-Origin"}
         */
        public static final String ACCESS_CONTROL_ALLOW_ORIGIN = "Access-Control-Allow-Origin";
        /**
         * {@code "Access-Control-Expose-Headers"}
         */
        public static final String ACCESS_CONTROL_EXPOSE_HEADERS = "Access-Control-Expose-Headers";
        /**
         * {@code "Access-Control-Max-Age"}
         */
        public static final String ACCESS_CONTROL_MAX_AGE = "Access-Control-Max-Age";
        /**
         * {@code "Access-Control-Request-Headers"}
         */
        public static final String ACCESS_CONTROL_REQUEST_HEADERS = "Access-Control-Request-Headers";
        /**
         * {@code "Access-Control-Request-Method"}
         */
        public static final String ACCESS_CONTROL_REQUEST_METHOD = "Access-Control-Request-Method";
        /**
         * {@code "Age"}
         */
        public static final String AGE = "Age";
        /**
         * {@code "Allow"}
         */

Frequently Asked Questions

What is the HttpHeaders class?
HttpHeaders is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaders.java.
Where is HttpHeaders defined?
HttpHeaders is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaders.java at line 48.

Analyze Your Own Codebase

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

Try Supermodel Free