Uses of Interface
java.net.http.WebSocket.Builder
-
Packages that use WebSocket.Builder 软件包 描述 java.net.http HTTP客户端和WebSocket API -
-
Uses of WebSocket.Builder in java.net.http
Methods in java.net.http that return WebSocket.Builder 变量和类型 方法 描述 WebSocket.Builder
WebSocket.Builder. connectTimeout(Duration timeout)
设置建立WebSocket连接的超时。WebSocket.Builder
WebSocket.Builder. header(String name, String value)
将给定的名称 - 值对添加到打开握手期间发送的其他HTTP标头的列表中。WebSocket.Builder
HttpClient. newWebSocketBuilder()
创建一个新的WebSocket
构建器(可选操作)。WebSocket.Builder
WebSocket.Builder. subprotocols(String mostPreferred, String... lesserPreferred)
设置给定子协议的请求。
-