Uses of Interface
jdk.incubator.http.WebSocket.Builder
-
Packages that use WebSocket.Builder 软件包 描述 jdk.incubator.http 高级HTTP和WebSocket API -
-
Uses of WebSocket.Builder in jdk.incubator.http
Methods in jdk.incubator.http that return WebSocket.Builder Modifier and Type 方法 描述 WebSocket.Builder
WebSocket.Builder. connectTimeout(Duration timeout)
设置开启握手的超时。WebSocket.Builder
WebSocket.Builder. header(String name, String value)
将给定的名称 - 值对添加到开启握手的附加标题列表中。WebSocket.Builder
HttpClient. newWebSocketBuilder(URI uri, WebSocket.Listener listener)
创建连接到给定URI的WebSocket
实例的构建器,并接收具有给定的Listener
事件和消息。WebSocket.Builder
WebSocket.Builder. subprotocols(String mostPreferred, String... lesserPreferred)
在开放握手期间包括给定子协议的请求。
-