testWebDavResponse() — netty Function Reference
Architecture documentation for the testWebDavResponse() function in HttpClientCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1501a870_b0d5_c066_8a8f_0ffdf6e1c4d7["testWebDavResponse()"] c395f8e2_08a9_4e0c_820e_5851189d51c7["HttpClientCodecTest"] 1501a870_b0d5_c066_8a8f_0ffdf6e1c4d7 -->|defined in| c395f8e2_08a9_4e0c_820e_5851189d51c7 style 1501a870_b0d5_c066_8a8f_0ffdf6e1c4d7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpClientCodecTest.java lines 335–353
@Test
public void testWebDavResponse() {
byte[] data = ("HTTP/1.1 102 Processing\r\n" +
"Status-URI: Status-URI:http://status.com; 404\r\n" +
"\r\n" +
"1234567812345678").getBytes();
EmbeddedChannel ch = new EmbeddedChannel(new HttpClientCodec());
assertTrue(ch.writeInbound(Unpooled.wrappedBuffer(data)));
HttpResponse res = ch.readInbound();
assertSame(HttpVersion.HTTP_1_1, res.protocolVersion());
assertEquals(HttpResponseStatus.PROCESSING, res.status());
HttpContent content = ch.readInbound();
// HTTP 102 is not allowed to have content.
assertEquals(0, content.content().readableBytes());
content.release();
assertFalse(ch.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testWebDavResponse() do?
testWebDavResponse() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpClientCodecTest.java.
Where is testWebDavResponse() defined?
testWebDavResponse() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpClientCodecTest.java at line 335.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free