Home / Function/ originHeaderWithoutScheme() — netty Function Reference

originHeaderWithoutScheme() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d09d981f_eb3c_368e_5361_7100e5457ff4["originHeaderWithoutScheme()"]
  2cb6ab9a_d30f_c725_5b7e_5ad8d513e6b9["WebSocketClientHandshakerTest"]
  d09d981f_eb3c_368e_5361_7100e5457ff4 -->|defined in| 2cb6ab9a_d30f_c725_5b7e_5ad8d513e6b9
  954cb835_980c_2a49_3ffe_e2428283b356["testOriginHeader()"]
  d09d981f_eb3c_368e_5361_7100e5457ff4 -->|calls| 954cb835_980c_2a49_3ffe_e2428283b356
  style d09d981f_eb3c_368e_5361_7100e5457ff4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshakerTest.java lines 163–182

    @Test
    public void originHeaderWithoutScheme() {
        testOriginHeader("//localhost/", "http://localhost");
        testOriginHeader("//localhost/path", "http://localhost");

        // http scheme by port
        testOriginHeader("//localhost:80/", "http://localhost");
        testOriginHeader("//localhost:80/path", "http://localhost");

        // https scheme by port
        testOriginHeader("//localhost:443/", "https://localhost");
        testOriginHeader("//localhost:443/path", "https://localhost");

        // http scheme for non standard port
        testOriginHeader("//localhost:9999/", "http://localhost:9999");
        testOriginHeader("//localhost:9999/path", "http://localhost:9999");

        // convert host to lower case
        testOriginHeader("//LOCALHOST/", "http://localhost");
    }

Domain

Subdomains

Frequently Asked Questions

What does originHeaderWithoutScheme() do?
originHeaderWithoutScheme() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshakerTest.java.
Where is originHeaderWithoutScheme() defined?
originHeaderWithoutScheme() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshakerTest.java at line 163.
What does originHeaderWithoutScheme() call?
originHeaderWithoutScheme() calls 1 function(s): testOriginHeader.

Analyze Your Own Codebase

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

Try Supermodel Free