isSwitchingToNonHttp1Protocol() — netty Function Reference
Architecture documentation for the isSwitchingToNonHttp1Protocol() function in HttpObjectDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2f946e86_7691_de33_0f9b_17113f4e73f9["isSwitchingToNonHttp1Protocol()"] 6c551372_1bb2_fe27_3884_c4cc297c86ae["HttpObjectDecoder"] 2f946e86_7691_de33_0f9b_17113f4e73f9 -->|defined in| 6c551372_1bb2_fe27_3884_c4cc297c86ae 91c85325_7220_8d93_a39b_91415ca496f4["State()"] 91c85325_7220_8d93_a39b_91415ca496f4 -->|calls| 2f946e86_7691_de33_0f9b_17113f4e73f9 style 2f946e86_7691_de33_0f9b_17113f4e73f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java lines 672–680
protected boolean isSwitchingToNonHttp1Protocol(HttpResponse msg) {
if (msg.status().code() != HttpResponseStatus.SWITCHING_PROTOCOLS.code()) {
return false;
}
String newProtocol = msg.headers().get(HttpHeaderNames.UPGRADE);
return newProtocol == null ||
!newProtocol.contains(HttpVersion.HTTP_1_0.text()) &&
!newProtocol.contains(HttpVersion.HTTP_1_1.text());
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isSwitchingToNonHttp1Protocol() do?
isSwitchingToNonHttp1Protocol() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java.
Where is isSwitchingToNonHttp1Protocol() defined?
isSwitchingToNonHttp1Protocol() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java at line 672.
What calls isSwitchingToNonHttp1Protocol()?
isSwitchingToNonHttp1Protocol() is called by 1 function(s): State.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free