testHttp1_0() — netty Function Reference
Architecture documentation for the testHttp1_0() function in HttpContentEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 01ea3b13_7667_9eb6_0cd7_c75214a062f8["testHttp1_0()"] 992a26d3_2083_aeb8_4785_63c545814355["HttpContentEncoderTest"] 01ea3b13_7667_9eb6_0cd7_c75214a062f8 -->|defined in| 992a26d3_2083_aeb8_4785_63c545814355 style 01ea3b13_7667_9eb6_0cd7_c75214a062f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java lines 373–396
@Test
public void testHttp1_0() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new TestEncoder());
FullHttpRequest req = new DefaultFullHttpRequest(HttpVersion.HTTP_1_0, HttpMethod.GET, "/");
assertTrue(ch.writeInbound(req));
HttpResponse res = new DefaultHttpResponse(HttpVersion.HTTP_1_0, HttpResponseStatus.OK);
res.headers().set(HttpHeaderNames.CONTENT_LENGTH, HttpHeaderValues.ZERO);
assertTrue(ch.writeOutbound(res));
assertTrue(ch.writeOutbound(LastHttpContent.EMPTY_LAST_CONTENT));
assertTrue(ch.finish());
FullHttpRequest request = ch.readInbound();
assertTrue(request.release());
assertNull(ch.readInbound());
HttpResponse response = ch.readOutbound();
assertSame(res, response);
LastHttpContent content = ch.readOutbound();
assertSame(LastHttpContent.EMPTY_LAST_CONTENT, content);
content.release();
assertNull(ch.readOutbound());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testHttp1_0() do?
testHttp1_0() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java.
Where is testHttp1_0() defined?
testHttp1_0() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java at line 373.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free