testHttpUpgradeRequestMissingWSKeyHeader() — netty Function Reference
Architecture documentation for the testHttpUpgradeRequestMissingWSKeyHeader() function in WebSocketServerProtocolHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bd5c87f6_81ae_fccc_d5ef_77abe1e0e6e1["testHttpUpgradeRequestMissingWSKeyHeader()"] 7afc952d_7109_096b_f81d_bf3293e37581["WebSocketServerProtocolHandlerTest"] bd5c87f6_81ae_fccc_d5ef_77abe1e0e6e1 -->|defined in| 7afc952d_7109_096b_f81d_bf3293e37581 style bd5c87f6_81ae_fccc_d5ef_77abe1e0e6e1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java lines 129–148
@Test
public void testHttpUpgradeRequestMissingWSKeyHeader() {
EmbeddedChannel ch = createChannel();
HttpRequest httpRequest = new WebSocketRequestBuilder().httpVersion(HTTP_1_1)
.method(HttpMethod.GET)
.uri("/test")
.key(null)
.connection("Upgrade")
.upgrade(HttpHeaderValues.WEBSOCKET)
.version13()
.build();
ch.writeInbound(httpRequest);
FullHttpResponse response = responses.remove();
assertEquals(BAD_REQUEST, response.status());
assertEquals("not a WebSocket request: missing key", getResponseMessage(response));
response.release();
assertFalse(ch.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testHttpUpgradeRequestMissingWSKeyHeader() do?
testHttpUpgradeRequestMissingWSKeyHeader() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java.
Where is testHttpUpgradeRequestMissingWSKeyHeader() defined?
testHttpUpgradeRequestMissingWSKeyHeader() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java at line 129.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free