isWebsocketUpgrade() — netty Function Reference
Architecture documentation for the isWebsocketUpgrade() function in WebSocketExtensionUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 83055958_d7d9_a79c_9dcf_9c22fcce8803["isWebsocketUpgrade()"] 36acf548_12c0_7c6a_f443_4b411d0a25e8["WebSocketExtensionUtil"] 83055958_d7d9_a79c_9dcf_9c22fcce8803 -->|defined in| 36acf548_12c0_7c6a_f443_4b411d0a25e8 style 83055958_d7d9_a79c_9dcf_9c22fcce8803 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionUtil.java lines 39–45
static boolean isWebsocketUpgrade(HttpHeaders headers) {
//this contains check does not allocate an iterator, and most requests are not upgrades
//so we do the contains check first before checking for specific values
return headers.contains(HttpHeaderNames.UPGRADE) &&
headers.containsValue(HttpHeaderNames.CONNECTION, HttpHeaderValues.UPGRADE, true) &&
headers.contains(HttpHeaderNames.UPGRADE, HttpHeaderValues.WEBSOCKET, true);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does isWebsocketUpgrade() do?
isWebsocketUpgrade() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionUtil.java.
Where is isWebsocketUpgrade() defined?
isWebsocketUpgrade() is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionUtil.java at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free