testOrderOfHeadersWithContentLength() — netty Function Reference
Architecture documentation for the testOrderOfHeadersWithContentLength() function in HttpResponseDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8c2a66b0_b54e_39d9_9d74_d6ea7a85c8dc["testOrderOfHeadersWithContentLength()"] 90546a8c_51c4_a9dc_b6e8_695d29269596["HttpResponseDecoderTest"] 8c2a66b0_b54e_39d9_9d74_d6ea7a85c8dc -->|defined in| 90546a8c_51c4_a9dc_b6e8_695d29269596 style 8c2a66b0_b54e_39d9_9d74_d6ea7a85c8dc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java lines 749–764
@Test
public void testOrderOfHeadersWithContentLength() {
String requestStr = "HTTP/1.1 200 OK\r\n" +
"Content-Type: text/plain; charset=UTF-8\r\n" +
"Content-Length: 5\r\n" +
"Connection: close\r\n\r\n" +
"hello";
EmbeddedChannel channel = new EmbeddedChannel(new HttpResponseDecoder());
assertTrue(channel.writeInbound(Unpooled.copiedBuffer(requestStr, CharsetUtil.US_ASCII)));
HttpResponse response = channel.readInbound();
List<String> headers = new ArrayList<String>();
for (Map.Entry<String, String> header : response.headers()) {
headers.add(header.getKey());
}
assertEquals(Arrays.asList("Content-Type", "Content-Length", "Connection"), headers, "ordered headers");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testOrderOfHeadersWithContentLength() do?
testOrderOfHeadersWithContentLength() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java.
Where is testOrderOfHeadersWithContentLength() defined?
testOrderOfHeadersWithContentLength() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java at line 749.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free