Class HttpClient
java.lang.Object
cool.scx.http.x.HttpClient
- All Implemented Interfaces:
ScxHttpClient
todo 待完成
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription创建 明文 socket创建 具有代理 的 明文 socketcreateTCPSocket(ScxURI uri, String... applicationProtocols) createTLSTCPSocket(ScxURI uri, String... applicationProtocols) 创建 tls socketcreateTLSTCPSocketWithProxy(ScxURI uri, String... applicationProtocols) 创建 具有代理 的 tls socketoptions()request()
-
Constructor Details
-
HttpClient
-
HttpClient
public HttpClient()
-
-
Method Details
-
options
-
createTCPSocket
- Throws:
IOException
-
createPlainTCPSocket
创建 明文 socket- Throws:
IOException
-
createTLSTCPSocket
public ScxTCPSocket createTLSTCPSocket(ScxURI uri, String... applicationProtocols) throws IOException 创建 tls socket- Throws:
IOException
-
createPlainTCPSocketWithProxy
创建 具有代理 的 明文 socket- Throws:
IOException
-
createTLSTCPSocketWithProxy
public ScxTCPSocket createTLSTCPSocketWithProxy(ScxURI uri, String... applicationProtocols) throws IOException 创建 具有代理 的 tls socket- Throws:
IOException
-
request
- Specified by:
requestin interfaceScxHttpClient
-