testDecodeZeroAttributesWithAmpersandPrefix() — netty Function Reference
Architecture documentation for the testDecodeZeroAttributesWithAmpersandPrefix() function in HttpPostStandardRequestDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7f0d1ca0_7374_eb69_4d00_2687c0cfe688["testDecodeZeroAttributesWithAmpersandPrefix()"] 700bdd36_e58a_9cef_6fb4_774362c57167["HttpPostStandardRequestDecoderTest"] 7f0d1ca0_7374_eb69_4d00_2687c0cfe688 -->|defined in| 700bdd36_e58a_9cef_6fb4_774362c57167 style 7f0d1ca0_7374_eb69_4d00_2687c0cfe688 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoderTest.java lines 207–220
@Test
void testDecodeZeroAttributesWithAmpersandPrefix() {
String requestBody = "&";
HttpRequest request = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/upload");
HttpPostStandardRequestDecoder decoder = new HttpPostStandardRequestDecoder(httpDiskDataFactory(), request);
ByteBuf buf = Unpooled.wrappedBuffer(requestBody.getBytes(CharsetUtil.UTF_8));
DefaultHttpContent httpContent = new DefaultLastHttpContent(buf);
decoder.offer(httpContent);
assertEquals(0, decoder.getBodyHttpDatas().size());
decoder.destroy();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDecodeZeroAttributesWithAmpersandPrefix() do?
testDecodeZeroAttributesWithAmpersandPrefix() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoderTest.java.
Where is testDecodeZeroAttributesWithAmpersandPrefix() defined?
testDecodeZeroAttributesWithAmpersandPrefix() is defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoderTest.java at line 207.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free