Home / Function/ testDecodingComplexCookie() — netty Function Reference

testDecodingComplexCookie() — netty Function Reference

Architecture documentation for the testDecodingComplexCookie() function in ClientCookieDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  112f5e20_a5ae_2d39_b8ed_6ea704050542["testDecodingComplexCookie()"]
  2635e872_d46e_792f_9aed_dd9f06eec252["ClientCookieDecoderTest"]
  112f5e20_a5ae_2d39_b8ed_6ea704050542 -->|defined in| 2635e872_d46e_792f_9aed_dd9f06eec252
  style 112f5e20_a5ae_2d39_b8ed_6ea704050542 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cookie/ClientCookieDecoderTest.java lines 116–129

    @Test
    public void testDecodingComplexCookie() {
        String c1 = "myCookie=myValue;max-age=50;path=/apathsomewhere;"
                + "domain=.adomainsomewhere;secure;comment=this is a comment;version=2;"
                + "commentURL=\"http://aurl.com\";port='80,8080';discard;";

        Cookie cookie = ClientCookieDecoder.STRICT.decode(c1);
        assertNotNull(cookie);
        assertEquals("myValue", cookie.value());
        assertEquals(".adomainsomewhere", cookie.domain());
        assertEquals(50, cookie.maxAge());
        assertEquals("/apathsomewhere", cookie.path());
        assertTrue(cookie.isSecure());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free