isUpgradeRequest 静态方法

bool isUpgradeRequest(
  1. HttpRequest request
)

检查请求是否为有效的 WebSocket 升级请求。

实现

static bool isUpgradeRequest(HttpRequest request) {
  return _WebSocketTransformerImpl._isUpgradeRequest(request);
}