Class HttpClient

java.lang.Object
cool.scx.http.x.HttpClient
All Implemented Interfaces:
cool.scx.http.ScxHttpClient

public class HttpClient extends Object implements cool.scx.http.ScxHttpClient
todo 待完成
Version:
0.0.1
Author:
scx567888
  • Constructor Details

    • HttpClient

      public HttpClient(HttpClientOptions options)
    • HttpClient

      public HttpClient()
  • Method Details

    • options

      public HttpClientOptions options()
    • createTCPSocket

      public cool.scx.tcp.ScxTCPSocket createTCPSocket(cool.scx.http.uri.ScxURI uri, String... applicationProtocols) throws IOException
      Throws:
      IOException
    • createPlainTCPSocket

      public cool.scx.tcp.ScxTCPSocket createPlainTCPSocket(cool.scx.http.uri.ScxURI uri) throws IOException
      创建 明文 socket
      Throws:
      IOException
    • createTLSTCPSocket

      public cool.scx.tcp.ScxTCPSocket createTLSTCPSocket(cool.scx.http.uri.ScxURI uri, String... applicationProtocols) throws IOException
      创建 tls socket
      Throws:
      IOException
    • createPlainTCPSocketWithProxy

      public cool.scx.tcp.ScxTCPSocket createPlainTCPSocketWithProxy() throws IOException
      创建 具有代理 的 明文 socket
      Throws:
      IOException
    • createTLSTCPSocketWithProxy

      public cool.scx.tcp.ScxTCPSocket createTLSTCPSocketWithProxy(cool.scx.http.uri.ScxURI uri, String... applicationProtocols) throws IOException
      创建 具有代理 的 tls socket
      Throws:
      IOException
    • request

      public HttpClientRequest request()
      Specified by:
      request in interface cool.scx.http.ScxHttpClient