Home / Function/ testRecognizesOriginForm() — netty Function Reference

testRecognizesOriginForm() — netty Function Reference

Architecture documentation for the testRecognizesOriginForm() function in HttpUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7358d137_6aac_0f28_4280_377d42411421["testRecognizesOriginForm()"]
  04f193b8_77e1_8af0_51b3_8dcd3ac8de0e["HttpUtilTest"]
  7358d137_6aac_0f28_4280_377d42411421 -->|defined in| 04f193b8_77e1_8af0_51b3_8dcd3ac8de0e
  style 7358d137_6aac_0f28_4280_377d42411421 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java lines 47–57

    @Test
    public void testRecognizesOriginForm() {
        // Origin form: https://tools.ietf.org/html/rfc7230#section-5.3.1
        assertTrue(HttpUtil.isOriginForm(URI.create("/where?q=now")));
        // Absolute form: https://tools.ietf.org/html/rfc7230#section-5.3.2
        assertFalse(HttpUtil.isOriginForm(URI.create("http://www.example.org/pub/WWW/TheProject.html")));
        // Authority form: https://tools.ietf.org/html/rfc7230#section-5.3.3
        assertFalse(HttpUtil.isOriginForm(URI.create("www.example.com:80")));
        // Asterisk form: https://tools.ietf.org/html/rfc7230#section-5.3.4
        assertFalse(HttpUtil.isOriginForm(URI.create("*")));
    }

Domain

Subdomains

Frequently Asked Questions

What does testRecognizesOriginForm() do?
testRecognizesOriginForm() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java.
Where is testRecognizesOriginForm() defined?
testRecognizesOriginForm() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java at line 47.

Analyze Your Own Codebase

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

Try Supermodel Free