Home / Function/ testPathSpecific() — netty Function Reference

testPathSpecific() — netty Function Reference

Architecture documentation for the testPathSpecific() function in QueryStringDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f20ead15_1a07_3d93_daad_ab13145a3250["testPathSpecific()"]
  eb06d5ec_240d_301a_c763_6ea4da90a16b["QueryStringDecoderTest"]
  f20ead15_1a07_3d93_daad_ab13145a3250 -->|defined in| eb06d5ec_240d_301a_c763_6ea4da90a16b
  style f20ead15_1a07_3d93_daad_ab13145a3250 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/QueryStringDecoderTest.java lines 156–174

    @Test
    public void testPathSpecific() {
        // decode escaped characters
        assertEquals("/foo bar/", new QueryStringDecoder("/foo%20bar/?").path());
        assertEquals("/foo\r\n\\bar/", new QueryStringDecoder("/foo%0D%0A\\bar/?").path());

        // a 'fragment' after '#' should be cuted (see RFC 3986)
        assertEquals("", new QueryStringDecoder("#123").path());
        assertEquals("foo", new QueryStringDecoder("foo?bar#anchor").path());
        assertEquals("/foo-bar", new QueryStringDecoder("/foo-bar#anchor").path());
        assertEquals("/foo-bar", new QueryStringDecoder("/foo-bar#a#b?c=d").path());

        // '+' is not escape ' ' for the path
        assertEquals("+", new QueryStringDecoder("+").path());
        assertEquals("/foo+bar/", new QueryStringDecoder("/foo+bar/?").path());
        assertEquals("/foo++", new QueryStringDecoder("/foo++?index.php").path());
        assertEquals("/foo +", new QueryStringDecoder("/foo%20+?index.php").path());
        assertEquals("/foo+ ", new QueryStringDecoder("/foo+%20").path());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free