Package org.webpieces.httpclient11.api
Interface HttpClient
-
- All Known Implementing Classes:
HttpClientImpl
public interface HttpClientYou may want to use the Http2to1_1ClientFactory to generate an http2 client that talks http1.1 which always allow switching to http2 with a one line change instead of using the 1.1 client The Http2to1_1 code is just a thin translation layer on top of this client
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpSocketcreateHttpSocket(HttpSocketListener listener)HttpSocket is so you can send multiple requestsHttpSocketcreateHttpsSocket(javax.net.ssl.SSLEngine engine, HttpSocketListener listener)
-
-
-
Method Detail
-
createHttpSocket
HttpSocket createHttpSocket(HttpSocketListener listener)
HttpSocket is so you can send multiple requests- Returns:
-
createHttpsSocket
HttpSocket createHttpsSocket(javax.net.ssl.SSLEngine engine, HttpSocketListener listener)
-
-