serverShouldCloseConnection() — netty Function Reference
Architecture documentation for the serverShouldCloseConnection() function in HttpObjectAggregatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6b3c607b_13cb_135d_4e47_27768799031e["serverShouldCloseConnection()"] 32ca569a_2b67_1114_bbc8_cbf703c91b95["HttpObjectAggregatorTest"] 6b3c607b_13cb_135d_4e47_27768799031e -->|defined in| 32ca569a_2b67_1114_bbc8_cbf703c91b95 3844a065_7276_ef08_d306_ec1b2cc87bed["checkOversizedRequest()"] 3844a065_7276_ef08_d306_ec1b2cc87bed -->|calls| 6b3c607b_13cb_135d_4e47_27768799031e style 6b3c607b_13cb_135d_4e47_27768799031e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java lines 264–278
private static boolean serverShouldCloseConnection(HttpRequest message, HttpResponse response) {
// If the response wasn't keep-alive, the server should close the connection.
if (!HttpUtil.isKeepAlive(response)) {
return true;
}
// The connection should only be kept open if Expect: 100-continue is set,
// or if keep-alive is on.
if (HttpUtil.is100ContinueExpected(message)) {
return false;
}
if (HttpUtil.isKeepAlive(message)) {
return false;
}
return true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does serverShouldCloseConnection() do?
serverShouldCloseConnection() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java.
Where is serverShouldCloseConnection() defined?
serverShouldCloseConnection() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java at line 264.
What calls serverShouldCloseConnection()?
serverShouldCloseConnection() is called by 1 function(s): checkOversizedRequest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free