Home / Function/ testStringKeyRetrievedAsAsciiString() — netty Function Reference

testStringKeyRetrievedAsAsciiString() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/DefaultHttpHeadersTest.java lines 103–120

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

        // Test adding String key and retrieving it using a AsciiString key
        final String connection = "keep-alive";
        headers.add(of("Connection"), connection);

        // Passes
        final String value = headers.getAsString(HttpHeaderNames.CONNECTION.toString());
        assertNotNull(value);
        assertEquals(connection, value);

        // Passes
        final String value2 = headers.getAsString(HttpHeaderNames.CONNECTION);
        assertNotNull(value2);
        assertEquals(connection, value2);
    }

Domain

Subdomains

Frequently Asked Questions

What does testStringKeyRetrievedAsAsciiString() do?
testStringKeyRetrievedAsAsciiString() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/DefaultHttpHeadersTest.java.
Where is testStringKeyRetrievedAsAsciiString() defined?
testStringKeyRetrievedAsAsciiString() is defined in codec-http/src/test/java/io/netty/handler/codec/http/DefaultHttpHeadersTest.java at line 103.
What does testStringKeyRetrievedAsAsciiString() call?
testStringKeyRetrievedAsAsciiString() 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