Interface ScxClientWebSocketHandshakeRequest
- All Superinterfaces:
cool.scx.http.ScxHttpClientRequest, cool.scx.http.headers.ScxHttpHeadersReadHelper, cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>, cool.scx.http.sender.ScxHttpSender<cool.scx.http.ScxHttpClientResponse>
public interface ScxClientWebSocketHandshakeRequest
extends cool.scx.http.ScxHttpClientRequest
ScxClientWebSocketHandshakeRequest
1, WebSocket 协议中指定了 必须由 GET 方法 和 空请求体 所以我们这里屏蔽掉一些方法
2, 重写一些方法的返回值 方便我们链式调用
- Version:
- 0.0.1
- Author:
- scx567888
-
Method Summary
Modifier and TypeMethodDescriptionaddCookie(cool.scx.http.headers.cookie.Cookie... cookie) headers(cool.scx.http.headers.ScxHttpHeaders headers) default cool.scx.http.method.ScxHttpMethodmethod()default cool.scx.http.ScxHttpClientRequestmethod(cool.scx.http.method.ScxHttpMethod method) removeCookie(String name) default cool.scx.http.ScxHttpClientResponsesend(cool.scx.http.media.MediaWriter writer) uri(cool.scx.http.uri.ScxURI uri) default cool.scx.http.version.HttpVersionversion()default cool.scx.http.ScxHttpClientRequestversion(cool.scx.http.version.HttpVersion version) default ScxWebSocketMethods inherited from interface cool.scx.http.ScxHttpClientRequest
headers, method, uriMethods inherited from interface cool.scx.http.headers.ScxHttpHeadersReadHelper
contentEncoding, contentLength, contentType, cookies, getCookie, getHeader, getHeader, getSetCookie, setCookiesMethods inherited from interface cool.scx.http.headers.ScxHttpHeadersWriteHelper
addSetCookie, contentEncoding, contentLength, contentType, removeHeader, removeHeader, removeSetCookieMethods inherited from interface cool.scx.http.sender.ScxHttpSender
send, send, send, send, send, send, send, send, send, send, send, sendEventStream, sendGzip
-
Method Details
-
sendHandshake
ScxClientWebSocketHandshakeResponse sendHandshake() -
webSocket
-
uri
- Specified by:
uriin interfacecool.scx.http.ScxHttpClientRequest
-
headers
- Specified by:
headersin interfacecool.scx.http.ScxHttpClientRequest
-
uri
- Specified by:
uriin interfacecool.scx.http.ScxHttpClientRequest
-
setHeader
default ScxClientWebSocketHandshakeRequest setHeader(cool.scx.http.headers.ScxHttpHeaderName headerName, String... values) - Specified by:
setHeaderin interfacecool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
-
addHeader
default ScxClientWebSocketHandshakeRequest addHeader(cool.scx.http.headers.ScxHttpHeaderName headerName, String... values) - Specified by:
addHeaderin interfacecool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
-
setHeader
- Specified by:
setHeaderin interfacecool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
-
addHeader
- Specified by:
addHeaderin interfacecool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
-
addCookie
- Specified by:
addCookiein interfacecool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
-
removeCookie
- Specified by:
removeCookiein interfacecool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
-
version
default cool.scx.http.version.HttpVersion version()- Specified by:
versionin interfacecool.scx.http.ScxHttpClientRequest
-
method
default cool.scx.http.method.ScxHttpMethod method()- Specified by:
methodin interfacecool.scx.http.ScxHttpClientRequest
-
version
default cool.scx.http.ScxHttpClientRequest version(cool.scx.http.version.HttpVersion version) - Specified by:
versionin interfacecool.scx.http.ScxHttpClientRequest
-
method
default cool.scx.http.ScxHttpClientRequest method(cool.scx.http.method.ScxHttpMethod method) - Specified by:
methodin interfacecool.scx.http.ScxHttpClientRequest
-
send
default cool.scx.http.ScxHttpClientResponse send(cool.scx.http.media.MediaWriter writer) throws cool.scx.http.sender.BodyAlreadySentException - Specified by:
sendin interfacecool.scx.http.ScxHttpClientRequest- Specified by:
sendin interfacecool.scx.http.sender.ScxHttpSender<cool.scx.http.ScxHttpClientResponse>- Throws:
cool.scx.http.sender.BodyAlreadySentException
-