testSend200OkResponseWithoutBody() — netty Function Reference
Architecture documentation for the testSend200OkResponseWithoutBody() function in RtspEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8de6bc77_d6e7_3011_3da2_b4933968fc33["testSend200OkResponseWithoutBody()"] 5a20be0b_00db_ad17_3f71_aa64a206ddc3["RtspEncoderTest"] 8de6bc77_d6e7_3011_3da2_b4933968fc33 -->|defined in| 5a20be0b_00db_ad17_3f71_aa64a206ddc3 style 8de6bc77_d6e7_3011_3da2_b4933968fc33 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/rtsp/RtspEncoderTest.java lines 110–131
@Test
public void testSend200OkResponseWithoutBody() {
String expected = "RTSP/1.0 200 OK\r\n"
+ "server: Testserver\r\n"
+ "cseq: 1\r\n"
+ "session: 2547019973447939919\r\n"
+ "\r\n";
HttpResponse response = new DefaultHttpResponse(RtspVersions.RTSP_1_0,
RtspResponseStatuses.OK);
response.headers().add(RtspHeaderNames.SERVER, "Testserver");
response.headers().add(RtspHeaderNames.CSEQ, "1");
response.headers().add(RtspHeaderNames.SESSION, "2547019973447939919");
EmbeddedChannel ch = new EmbeddedChannel(new RtspEncoder());
ch.writeOutbound(response);
ByteBuf buf = ch.readOutbound();
String actual = buf.toString(CharsetUtil.UTF_8);
buf.release();
assertEquals(expected, actual);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSend200OkResponseWithoutBody() do?
testSend200OkResponseWithoutBody() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/rtsp/RtspEncoderTest.java.
Where is testSend200OkResponseWithoutBody() defined?
testSend200OkResponseWithoutBody() is defined in codec-http/src/test/java/io/netty/handler/codec/rtsp/RtspEncoderTest.java at line 110.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free