Home / Function/ testGetCharsetUtf8() — netty Function Reference

testGetCharsetUtf8() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1817e9f4_e66c_1611_f584_845c591af40d["testGetCharsetUtf8()"]
  04f193b8_77e1_8af0_51b3_8dcd3ac8de0e["HttpUtilTest"]
  1817e9f4_e66c_1611_f584_845c591af40d -->|defined in| 04f193b8_77e1_8af0_51b3_8dcd3ac8de0e
  a88c799d_1066_1126_1185_1086fe313d90["testGetCharset()"]
  a88c799d_1066_1126_1185_1086fe313d90 -->|calls| 1817e9f4_e66c_1611_f584_845c591af40d
  dddffeeb_69ef_709e_b1e2_dd5a67565be4["testGetCharsetNoSpace()"]
  dddffeeb_69ef_709e_b1e2_dd5a67565be4 -->|calls| 1817e9f4_e66c_1611_f584_845c591af40d
  83bf01d7_df98_d415_9fed_f1447e74073a["testGetCharsetQuoted()"]
  83bf01d7_df98_d415_9fed_f1447e74073a -->|calls| 1817e9f4_e66c_1611_f584_845c591af40d
  a5aa94d3_52ca_173c_51b8_2d3c4022f1f2["testGetCharsetNoSpaceQuoted()"]
  a5aa94d3_52ca_173c_51b8_2d3c4022f1f2 -->|calls| 1817e9f4_e66c_1611_f584_845c591af40d
  style 1817e9f4_e66c_1611_f584_845c591af40d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java lines 150–161

    private void testGetCharsetUtf8(String contentType) {
        String UPPER_CASE_NORMAL_CONTENT_TYPE = contentType.toUpperCase();

        HttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
        message.headers().set(HttpHeaderNames.CONTENT_TYPE, contentType);
        assertEquals(CharsetUtil.UTF_8, HttpUtil.getCharset(message));
        assertEquals(CharsetUtil.UTF_8, HttpUtil.getCharset(contentType));

        message.headers().set(HttpHeaderNames.CONTENT_TYPE, UPPER_CASE_NORMAL_CONTENT_TYPE);
        assertEquals(CharsetUtil.UTF_8, HttpUtil.getCharset(message));
        assertEquals(CharsetUtil.UTF_8, HttpUtil.getCharset(UPPER_CASE_NORMAL_CONTENT_TYPE));
    }

Domain

Subdomains

Frequently Asked Questions

What does testGetCharsetUtf8() do?
testGetCharsetUtf8() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java.
Where is testGetCharsetUtf8() defined?
testGetCharsetUtf8() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java at line 150.
What calls testGetCharsetUtf8()?
testGetCharsetUtf8() is called by 4 function(s): testGetCharset, testGetCharsetNoSpace, testGetCharsetNoSpaceQuoted, testGetCharsetQuoted.

Analyze Your Own Codebase

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

Try Supermodel Free