boolean (@NotNull FullHttpRequest request) { return request.method() == HttpMethod.GET && "WebSocket".equalsIgnoreCase(request.headers().getAsString(HttpHeaderNames.UPGRADE)) && request.uri().length() > 2; }