testTooManyFormFieldsPostMultipartDecoder() — netty Function Reference
Architecture documentation for the testTooManyFormFieldsPostMultipartDecoder() function in HttpPostRequestDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4f2b8f1a_fc1b_7d39_732b_478bf78fee2f["testTooManyFormFieldsPostMultipartDecoder()"] d3dadcbe_07b1_86dc_3f34_5a56e9d1367e["HttpPostRequestDecoderTest"] 4f2b8f1a_fc1b_7d39_732b_478bf78fee2f -->|defined in| d3dadcbe_07b1_86dc_3f34_5a56e9d1367e style 4f2b8f1a_fc1b_7d39_732b_478bf78fee2f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java lines 1058–1085
@Test
public void testTooManyFormFieldsPostMultipartDecoder() {
HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/");
req.headers().add("Content-Type", "multipart/form-data;boundary=be38b42a9ad2713f");
HttpPostRequestDecoder decoder = new HttpPostRequestDecoder(req, 1024, -1);
decoder.offer(new DefaultHttpContent(Unpooled.wrappedBuffer("--be38b42a9ad2713f\n".getBytes())));
int num = 0;
while (true) {
try {
byte[] bodyBytes = ("content-disposition: form-data; name=\"title\"\n" +
"content-length: 10\n" +
"content-type: text/plain; charset=UTF-8\n" +
"\n" +
"bar-stream\n" +
"--be38b42a9ad2713f\n").getBytes();
ByteBuf content = Unpooled.wrappedBuffer(bodyBytes);
decoder.offer(new DefaultHttpContent(content));
} catch (DecoderException e) {
assertEquals(HttpPostRequestDecoder.TooManyFormFieldsException.class, e.getClass());
break;
}
assertTrue(num++ < 1024);
}
assertEquals(1024, num);
decoder.destroy();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testTooManyFormFieldsPostMultipartDecoder() do?
testTooManyFormFieldsPostMultipartDecoder() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java.
Where is testTooManyFormFieldsPostMultipartDecoder() defined?
testTooManyFormFieldsPostMultipartDecoder() is defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java at line 1058.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free