Home / Function/ testAsciiStringKeyRetrievedAsString() — netty Function Reference

testAsciiStringKeyRetrievedAsString() — netty Function Reference

Architecture documentation for the testAsciiStringKeyRetrievedAsString() function in DefaultHttpHeadersTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cfc7058f_edfd_f395_04c6_1ae5b459775c["testAsciiStringKeyRetrievedAsString()"]
  f85bc383_4d1b_f750_ebed_0a80200aa397["DefaultHttpHeadersTest"]
  cfc7058f_edfd_f395_04c6_1ae5b459775c -->|defined in| f85bc383_4d1b_f750_ebed_0a80200aa397
  73b6eb5c_3d1f_023a_42aa_4bac6bac0ba9["DefaultHttpHeaders()"]
  cfc7058f_edfd_f395_04c6_1ae5b459775c -->|calls| 73b6eb5c_3d1f_023a_42aa_4bac6bac0ba9
  style cfc7058f_edfd_f395_04c6_1ae5b459775c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/DefaultHttpHeadersTest.java lines 122–137

    @Test
    public void testAsciiStringKeyRetrievedAsString() {
        final HttpHeaders headers = new DefaultHttpHeaders(false);

        // Test adding AsciiString key and retrieving it using a String key
        final String cacheControl = "no-cache";
        headers.add(HttpHeaderNames.CACHE_CONTROL, cacheControl);

        final String value = headers.getAsString(HttpHeaderNames.CACHE_CONTROL);
        assertNotNull(value);
        assertEquals(cacheControl, value);

        final String value2 = headers.getAsString(HttpHeaderNames.CACHE_CONTROL.toString());
        assertNotNull(value2);
        assertEquals(cacheControl, value2);
    }

Domain

Subdomains

Frequently Asked Questions

What does testAsciiStringKeyRetrievedAsString() do?
testAsciiStringKeyRetrievedAsString() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/DefaultHttpHeadersTest.java.
Where is testAsciiStringKeyRetrievedAsString() defined?
testAsciiStringKeyRetrievedAsString() is defined in codec-http/src/test/java/io/netty/handler/codec/http/DefaultHttpHeadersTest.java at line 122.
What does testAsciiStringKeyRetrievedAsString() call?
testAsciiStringKeyRetrievedAsString() calls 1 function(s): DefaultHttpHeaders.

Analyze Your Own Codebase

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

Try Supermodel Free