testCheckValidWebSocketPath() — netty Function Reference
Architecture documentation for the testCheckValidWebSocketPath() function in WebSocketServerProtocolHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8c8de3ea_ff5c_f8bf_252e_bf28c1f471a0["testCheckValidWebSocketPath()"] 7afc952d_7109_096b_f81d_bf3293e37581["WebSocketServerProtocolHandlerTest"] 8c8de3ea_ff5c_f8bf_252e_bf28c1f471a0 -->|defined in| 7afc952d_7109_096b_f81d_bf3293e37581 80f33c2c_3b4b_5696_fbad_e6b9f93bb80d["EmbeddedChannel()"] 8c8de3ea_ff5c_f8bf_252e_bf28c1f471a0 -->|calls| 80f33c2c_3b4b_5696_fbad_e6b9f93bb80d style 8c8de3ea_ff5c_f8bf_252e_bf28c1f471a0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java lines 246–272
@Test
public void testCheckValidWebSocketPath() {
HttpRequest httpRequest = new WebSocketRequestBuilder().httpVersion(HTTP_1_1)
.method(HttpMethod.GET)
.uri("/test")
.key(HttpHeaderNames.SEC_WEBSOCKET_KEY)
.connection("Upgrade")
.upgrade(HttpHeaderValues.WEBSOCKET)
.version13()
.build();
WebSocketServerProtocolConfig config = WebSocketServerProtocolConfig.newBuilder()
.websocketPath("/test")
.checkStartsWith(true)
.build();
EmbeddedChannel ch = new EmbeddedChannel(
new WebSocketServerProtocolHandler(config),
new HttpRequestDecoder(),
new HttpResponseEncoder(),
new MockOutboundHandler());
ch.writeInbound(httpRequest);
FullHttpResponse response = responses.remove();
assertEquals(SWITCHING_PROTOCOLS, response.status());
response.release();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testCheckValidWebSocketPath() do?
testCheckValidWebSocketPath() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java.
Where is testCheckValidWebSocketPath() defined?
testCheckValidWebSocketPath() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java at line 246.
What does testCheckValidWebSocketPath() call?
testCheckValidWebSocketPath() calls 1 function(s): EmbeddedChannel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free