Home / Class/ HttpProxyHandlerTest Class — netty Architecture

HttpProxyHandlerTest Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  4863804c_b04f_6a7f_744b_534e664fa2c9["HttpProxyHandlerTest"]
  1249f314_50c2_ebfb_8aee_5e9b02105241["HttpProxyHandlerTest.java"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|defined in| 1249f314_50c2_ebfb_8aee_5e9b02105241
  ba58e338_0e9a_0780_1786_86adf54e4fff["testHostname()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| ba58e338_0e9a_0780_1786_86adf54e4fff
  a0ccc851_b7ec_625e_7aa0_0bff2d939b66["testHostnameUnresolved()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| a0ccc851_b7ec_625e_7aa0_0bff2d939b66
  af58a712_fdeb_01f3_7ae1_d528ac6e713f["testHostHeaderWithHttpDefaultPort()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| af58a712_fdeb_01f3_7ae1_d528ac6e713f
  d31f0b9a_457f_02a6_b6cd_bdb9e3b70e70["testHostHeaderWithHttpDefaultPortIgnored()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| d31f0b9a_457f_02a6_b6cd_bdb9e3b70e70
  ad0a5016_2a3d_8c84_b16d_33c1bae57ad8["testHostHeaderWithHttpsDefaultPort()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| ad0a5016_2a3d_8c84_b16d_33c1bae57ad8
  bd3d65f2_53e2_15e2_8f93_ca7479312a13["testHostHeaderWithHttpsDefaultPortIgnored()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| bd3d65f2_53e2_15e2_8f93_ca7479312a13
  b9b92aad_5ab4_7750_948a_72f6f6a3f41f["testIpv6()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| b9b92aad_5ab4_7750_948a_72f6f6a3f41f
  44c0dc9d_cd09_04ed_fc70_3a8e00223193["testIpv6Unresolved()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| 44c0dc9d_cd09_04ed_fc70_3a8e00223193
  2d59513d_204e_5a93_1d01_4c3aa74fc7a5["testIpv4()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| 2d59513d_204e_5a93_1d01_4c3aa74fc7a5
  fb11fc4a_b39f_d6bb_02da_181fca1c790d["testIpv4Unresolved()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| fb11fc4a_b39f_d6bb_02da_181fca1c790d
  85234e40_5708_19e4_5538_103e27ff78ec["testCustomHeaders()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| 85234e40_5708_19e4_5538_103e27ff78ec
  fc1d1916_d4be_fa46_8b9d_d1fd08525015["testExceptionDuringConnect()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| fc1d1916_d4be_fa46_8b9d_d1fd08525015
  28ef3cf9_cc4c_2f0a_2918_784cd7fbebca["testInitialMessage()"]
  4863804c_b04f_6a7f_744b_534e664fa2c9 -->|method| 28ef3cf9_cc4c_2f0a_2918_784cd7fbebca

Relationship Graph

Source Code

handler-proxy/src/test/java/io/netty/handler/proxy/HttpProxyHandlerTest.java lines 57–289

public class HttpProxyHandlerTest {

    @Test
    public void testHostname() throws Exception {
        InetSocketAddress socketAddress = new InetSocketAddress(InetAddress.getByName("localhost"), 8080);
        testInitialMessage(
                socketAddress,
                "localhost:8080",
                "localhost:8080",
                null,
                true);
    }

    @Test
    public void testHostnameUnresolved() throws Exception {
        InetSocketAddress socketAddress = InetSocketAddress.createUnresolved("localhost", 8080);
        testInitialMessage(
                socketAddress,
                "localhost:8080",
                "localhost:8080",
                null,
                true);
    }

    @Test
    public void testHostHeaderWithHttpDefaultPort() throws Exception {
        InetSocketAddress socketAddress = new InetSocketAddress(InetAddress.getByName("localhost"), 80);
        testInitialMessage(socketAddress,
                "localhost:80",
                "localhost:80", null,
                false);
    }

    @Test
    public void testHostHeaderWithHttpDefaultPortIgnored() throws Exception {
        InetSocketAddress socketAddress = InetSocketAddress.createUnresolved("localhost", 80);
        testInitialMessage(
                socketAddress,
                "localhost:80",
                "localhost",
                null,
                true);
    }

    @Test
    public void testHostHeaderWithHttpsDefaultPort() throws Exception {
        InetSocketAddress socketAddress = new InetSocketAddress(InetAddress.getByName("localhost"), 443);
        testInitialMessage(
                socketAddress,
                "localhost:443",
                "localhost:443",
                null,
                false);
    }

    @Test
    public void testHostHeaderWithHttpsDefaultPortIgnored() throws Exception {
        InetSocketAddress socketAddress = InetSocketAddress.createUnresolved("localhost", 443);
        testInitialMessage(
                socketAddress,
                "localhost:443",
                "localhost",
                null,
                true);
    }

    @Test
    public void testIpv6() throws Exception {
        InetSocketAddress socketAddress = new InetSocketAddress(InetAddress.getByName("::1"), 8080);
        testInitialMessage(
                socketAddress,
                "[::1]:8080",
                "[::1]:8080",
                null,
                true);
    }

    @Test
    public void testIpv6Unresolved() throws Exception {
        InetSocketAddress socketAddress = InetSocketAddress.createUnresolved("::1", 8080);
        testInitialMessage(

Frequently Asked Questions

What is the HttpProxyHandlerTest class?
HttpProxyHandlerTest is a class in the netty codebase, defined in handler-proxy/src/test/java/io/netty/handler/proxy/HttpProxyHandlerTest.java.
Where is HttpProxyHandlerTest defined?
HttpProxyHandlerTest is defined in handler-proxy/src/test/java/io/netty/handler/proxy/HttpProxyHandlerTest.java at line 57.

Analyze Your Own Codebase

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

Try Supermodel Free