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 Details

    • sendHandshake

    • webSocket

      default ScxWebSocket webSocket()
    • uri

      ScxClientWebSocketHandshakeRequest uri(cool.scx.http.uri.ScxURI uri)
      Specified by:
      uri in interface cool.scx.http.ScxHttpClientRequest
    • headers

      ScxClientWebSocketHandshakeRequest headers(cool.scx.http.headers.ScxHttpHeaders headers)
      Specified by:
      headers in interface cool.scx.http.ScxHttpClientRequest
    • uri

      Specified by:
      uri in interface cool.scx.http.ScxHttpClientRequest
    • setHeader

      default ScxClientWebSocketHandshakeRequest setHeader(cool.scx.http.headers.ScxHttpHeaderName headerName, String... values)
      Specified by:
      setHeader in interface cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
    • addHeader

      default ScxClientWebSocketHandshakeRequest addHeader(cool.scx.http.headers.ScxHttpHeaderName headerName, String... values)
      Specified by:
      addHeader in interface cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
    • setHeader

      default ScxClientWebSocketHandshakeRequest setHeader(String headerName, String... values)
      Specified by:
      setHeader in interface cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
    • addHeader

      default ScxClientWebSocketHandshakeRequest addHeader(String headerName, String... values)
      Specified by:
      addHeader in interface cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
    • addCookie

      default ScxClientWebSocketHandshakeRequest addCookie(cool.scx.http.headers.cookie.Cookie... cookie)
      Specified by:
      addCookie in interface cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
    • removeCookie

      default ScxClientWebSocketHandshakeRequest removeCookie(String name)
      Specified by:
      removeCookie in interface cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
    • version

      default cool.scx.http.version.HttpVersion version()
      Specified by:
      version in interface cool.scx.http.ScxHttpClientRequest
    • method

      default cool.scx.http.method.ScxHttpMethod method()
      Specified by:
      method in interface cool.scx.http.ScxHttpClientRequest
    • version

      default cool.scx.http.ScxHttpClientRequest version(cool.scx.http.version.HttpVersion version)
      Specified by:
      version in interface cool.scx.http.ScxHttpClientRequest
    • method

      default cool.scx.http.ScxHttpClientRequest method(cool.scx.http.method.ScxHttpMethod method)
      Specified by:
      method in interface cool.scx.http.ScxHttpClientRequest
    • send

      default cool.scx.http.ScxHttpClientResponse send(cool.scx.http.media.MediaWriter writer) throws cool.scx.http.sender.BodyAlreadySentException
      Specified by:
      send in interface cool.scx.http.ScxHttpClientRequest
      Specified by:
      send in interface cool.scx.http.sender.ScxHttpSender<cool.scx.http.ScxHttpClientResponse>
      Throws:
      cool.scx.http.sender.BodyAlreadySentException