Home / Function/ setUp() — netty Function Reference

setUp() — netty Function Reference

Architecture documentation for the setUp() function in HttpPostDecoderBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  bab8206c_6766_2b23_3f64_8879716f141c["setUp()"]
  90cad539_5ee5_ce23_b02d_1cbef3a4190d["HttpPostDecoderBenchmark"]
  bab8206c_6766_2b23_3f64_8879716f141c -->|defined in| 90cad539_5ee5_ce23_b02d_1cbef3a4190d
  style bab8206c_6766_2b23_3f64_8879716f141c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/http/HttpPostDecoderBenchmark.java lines 51–65

    @Setup()
    public void setUp() {
        request = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/post");
        request.headers().add(HttpHeaderNames.CONTENT_TYPE, "application/x-www-form-urlencoded");
        buf = direct ? Unpooled.directBuffer() : Unpooled.buffer();
        for (int i = 0; i < 100; i++) {
            if (i != 0) {
                buf.writeByte('&');
            }
            ByteBufUtil.writeAscii(buf, "form-field-" + i);
            buf.writeByte('=');

            ByteBufUtil.writeAscii(buf, randomString());
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does setUp() do?
setUp() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/http/HttpPostDecoderBenchmark.java.
Where is setUp() defined?
setUp() is defined in microbench/src/main/java/io/netty/handler/codec/http/HttpPostDecoderBenchmark.java at line 51.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free