use of org.webpieces.httpclient11.impl.HttpSocketImpl in project webpieces by deanhiller.
the class DirectHttp11Client method createHttpSocket.
public HttpSocket createHttpSocket(HttpSocketListener closeListener) {
ConnectionListener listener = mgr.getHttpConnection();
MockTcpChannel channel = new MockTcpChannel(false);
return new HttpSocketImpl(new DelayedProxy(listener, channel), parser, closeListener, false);
// return new Http11SocketImpl(listener, channel, parser, false);
}
use of org.webpieces.httpclient11.impl.HttpSocketImpl in project webpieces by deanhiller.
the class DirectHttp11Client method createHttpsSocket.
public HttpSocket createHttpsSocket(SSLEngine engine, HttpSocketListener closeListener) {
ConnectionListener listener = mgr.getHttpsConnection();
MockTcpChannel channel = new MockTcpChannel(true);
return new HttpSocketImpl(new DelayedProxy(listener, channel), parser, closeListener, true);
}
Aggregations