Home / Function/ setConnectionClose() — netty Function Reference

setConnectionClose() — netty Function Reference

Architecture documentation for the setConnectionClose() function in IsKeepAliveBenchmark.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  be08850d_2c75_2ebc_cbd6_16faa4a19961["setConnectionClose()"]
  4326e7e2_fab3_dec2_fce8_32dffea2c089["IsKeepAliveBenchmark"]
  be08850d_2c75_2ebc_cbd6_16faa4a19961 -->|defined in| 4326e7e2_fab3_dec2_fce8_32dffea2c089
  5d4e8a23_ec4d_912b_b2ee_9ef5647c8df5["setup()"]
  5d4e8a23_ec4d_912b_b2ee_9ef5647c8df5 -->|calls| be08850d_2c75_2ebc_cbd6_16faa4a19961
  style be08850d_2c75_2ebc_cbd6_16faa4a19961 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/headers/IsKeepAliveBenchmark.java lines 105–117

    private static void setConnectionClose(HttpHeaders headers, ConnectionClose close) {
        switch (close) {
            case KeepAlive:
                headers.set(HttpHeaderNames.CONNECTION, "keep-alive");
                break;
            case Close:
                headers.set(HttpHeaderNames.CONNECTION, "close");
                break;
            case None:
                // omit header
                break;
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does setConnectionClose() do?
setConnectionClose() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/headers/IsKeepAliveBenchmark.java.
Where is setConnectionClose() defined?
setConnectionClose() is defined in microbench/src/main/java/io/netty/microbench/headers/IsKeepAliveBenchmark.java at line 105.
What calls setConnectionClose()?
setConnectionClose() is called by 1 function(s): setup.

Analyze Your Own Codebase

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

Try Supermodel Free