Home / Class/ HttpHeaderValidationUtilTest Class — netty Architecture

HttpHeaderValidationUtilTest Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  41393c8c_1006_6327_605c_681db4fcf453["HttpHeaderValidationUtilTest"]
  f85b59b0_5af8_c797_c87f_4de060f46263["HttpHeaderValidationUtilTest.java"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|defined in| f85b59b0_5af8_c797_c87f_4de060f46263
  68064c85_3b2f_11be_efcc_88f614c3a80d["connectionRelatedHeaders()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| 68064c85_3b2f_11be_efcc_88f614c3a80d
  c7907aa4_cd51_4690_b265_fa9536d38c6a["Arguments()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| c7907aa4_cd51_4690_b265_fa9536d38c6a
  bd5dc780_3ef9_3737_126c_278a96755cfb["mustIdentifyConnectionRelatedHeadersAsciiString()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| bd5dc780_3ef9_3737_126c_278a96755cfb
  ae525136_33b1_b2a9_c7f0_3ea06a85387c["mustIdentifyConnectionRelatedHeadersString()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| ae525136_33b1_b2a9_c7f0_3ea06a85387c
  a665f29c_0934_7490_6982_d8f5e9e7977a["teHeaderIsNotConnectionRelatedWhenIgnoredAsciiString()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| a665f29c_0934_7490_6982_d8f5e9e7977a
  5d02e712_8516_cece_44c3_ec2e2312c305["teHeaderIsNotConnectionRelatedWhenIgnoredString()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| 5d02e712_8516_cece_44c3_ec2e2312c305
  fd77b2cd_21d6_0f67_8cd8_a93c111b9fcc["teIsTrailersTruthTable()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| fd77b2cd_21d6_0f67_8cd8_a93c111b9fcc
  1777e163_586d_7b6d_9e0a_0018ed8f9665["whenTeIsNotTrailerOrNotWithNameAndValueAsciiString()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| 1777e163_586d_7b6d_9e0a_0018ed8f9665
  cdbd2e8b_6c54_1700_b762_b63991082b3e["whenTeIsNotTrailerOrNotSWithNameAndValueString()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| cdbd2e8b_6c54_1700_b762_b63991082b3e
  ec15d1a0_3911_fd6b_abe6_765bd03b3124["whenTeIsNotTrailerOrNotSWithNameAsciiStringAndValueString()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| ec15d1a0_3911_fd6b_abe6_765bd03b3124
  98630e3f_cfe0_1517_93f4_6065b91d800b["whenTeIsNotTrailerOrNotSWithNametringAndValueAsciiString()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| 98630e3f_cfe0_1517_93f4_6065b91d800b
  2962afbb_ec6c_1b48_ebf1_f5e3a2e70b78["illegalFirstChar()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| 2962afbb_ec6c_1b48_ebf1_f5e3a2e70b78
  b074883a_ddf3_3abd_a4aa_f460c5ce2c5e["asciiStrings()"]
  41393c8c_1006_6327_605c_681db4fcf453 -->|method| b074883a_ddf3_3abd_a4aa_f460c5ce2c5e

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpHeaderValidationUtilTest.java lines 41–610

@Execution(ExecutionMode.CONCURRENT) // We have a couple of fairly slow tests here. Better to run them in parallel.
public class HttpHeaderValidationUtilTest {
    @SuppressWarnings("deprecation") // We need to check for deprecated headers as well.
    public static List<Arguments> connectionRelatedHeaders() {
        List<Arguments> list = new ArrayList<Arguments>();

        list.add(header(false, HttpHeaderNames.ACCEPT));
        list.add(header(false, HttpHeaderNames.ACCEPT_CHARSET));
        list.add(header(false, HttpHeaderNames.ACCEPT_ENCODING));
        list.add(header(false, HttpHeaderNames.ACCEPT_LANGUAGE));
        list.add(header(false, HttpHeaderNames.ACCEPT_RANGES));
        list.add(header(false, HttpHeaderNames.ACCEPT_PATCH));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_ALLOW_CREDENTIALS));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_ALLOW_HEADERS));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_ALLOW_METHODS));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_EXPOSE_HEADERS));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_MAX_AGE));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_REQUEST_HEADERS));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_REQUEST_METHOD));
        list.add(header(false, HttpHeaderNames.ACCESS_CONTROL_REQUEST_PRIVATE_NETWORK));
        list.add(header(false, HttpHeaderNames.AGE));
        list.add(header(false, HttpHeaderNames.ALLOW));
        list.add(header(false, HttpHeaderNames.AUTHORIZATION));
        list.add(header(false, HttpHeaderNames.CACHE_CONTROL));
        list.add(header(true, HttpHeaderNames.CONNECTION));
        list.add(header(false, HttpHeaderNames.CONTENT_BASE));
        list.add(header(false, HttpHeaderNames.CONTENT_ENCODING));
        list.add(header(false, HttpHeaderNames.CONTENT_LANGUAGE));
        list.add(header(false, HttpHeaderNames.CONTENT_LENGTH));
        list.add(header(false, HttpHeaderNames.CONTENT_LOCATION));
        list.add(header(false, HttpHeaderNames.CONTENT_TRANSFER_ENCODING));
        list.add(header(false, HttpHeaderNames.CONTENT_DISPOSITION));
        list.add(header(false, HttpHeaderNames.CONTENT_MD5));
        list.add(header(false, HttpHeaderNames.CONTENT_RANGE));
        list.add(header(false, HttpHeaderNames.CONTENT_SECURITY_POLICY));
        list.add(header(false, HttpHeaderNames.CONTENT_TYPE));
        list.add(header(false, HttpHeaderNames.COOKIE));
        list.add(header(false, HttpHeaderNames.DATE));
        list.add(header(false, HttpHeaderNames.DNT));
        list.add(header(false, HttpHeaderNames.ETAG));
        list.add(header(false, HttpHeaderNames.EXPECT));
        list.add(header(false, HttpHeaderNames.EXPIRES));
        list.add(header(false, HttpHeaderNames.FROM));
        list.add(header(false, HttpHeaderNames.HOST));
        list.add(header(false, HttpHeaderNames.IF_MATCH));
        list.add(header(false, HttpHeaderNames.IF_MODIFIED_SINCE));
        list.add(header(false, HttpHeaderNames.IF_NONE_MATCH));
        list.add(header(false, HttpHeaderNames.IF_RANGE));
        list.add(header(false, HttpHeaderNames.IF_UNMODIFIED_SINCE));
        list.add(header(true, HttpHeaderNames.KEEP_ALIVE));
        list.add(header(false, HttpHeaderNames.LAST_MODIFIED));
        list.add(header(false, HttpHeaderNames.LOCATION));
        list.add(header(false, HttpHeaderNames.MAX_FORWARDS));
        list.add(header(false, HttpHeaderNames.ORIGIN));
        list.add(header(false, HttpHeaderNames.PRAGMA));
        list.add(header(false, HttpHeaderNames.PROXY_AUTHENTICATE));
        list.add(header(false, HttpHeaderNames.PROXY_AUTHORIZATION));
        list.add(header(true, HttpHeaderNames.PROXY_CONNECTION));
        list.add(header(false, HttpHeaderNames.RANGE));
        list.add(header(false, HttpHeaderNames.REFERER));
        list.add(header(false, HttpHeaderNames.RETRY_AFTER));
        list.add(header(false, HttpHeaderNames.SEC_WEBSOCKET_KEY1));
        list.add(header(false, HttpHeaderNames.SEC_WEBSOCKET_KEY2));
        list.add(header(false, HttpHeaderNames.SEC_WEBSOCKET_LOCATION));
        list.add(header(false, HttpHeaderNames.SEC_WEBSOCKET_ORIGIN));
        list.add(header(false, HttpHeaderNames.SEC_WEBSOCKET_PROTOCOL));
        list.add(header(false, HttpHeaderNames.SEC_WEBSOCKET_VERSION));
        list.add(header(false, HttpHeaderNames.SEC_WEBSOCKET_KEY));
        list.add(header(false, HttpHeaderNames.SEC_WEBSOCKET_ACCEPT));
        list.add(header(false, HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS));
        list.add(header(false, HttpHeaderNames.SERVER));
        list.add(header(false, HttpHeaderNames.SET_COOKIE));
        list.add(header(false, HttpHeaderNames.SET_COOKIE2));
        list.add(header(true, HttpHeaderNames.TE));
        list.add(header(false, HttpHeaderNames.TRAILER));
        list.add(header(true, HttpHeaderNames.TRANSFER_ENCODING));
        list.add(header(true, HttpHeaderNames.UPGRADE));
        list.add(header(false, HttpHeaderNames.UPGRADE_INSECURE_REQUESTS));
        list.add(header(false, HttpHeaderNames.USER_AGENT));

Frequently Asked Questions

What is the HttpHeaderValidationUtilTest class?
HttpHeaderValidationUtilTest is a class in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpHeaderValidationUtilTest.java.
Where is HttpHeaderValidationUtilTest defined?
HttpHeaderValidationUtilTest is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpHeaderValidationUtilTest.java at line 41.

Analyze Your Own Codebase

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

Try Supermodel Free