public HttpConnectionPool(HttpConnectionKind kind, string host, string sslHost, int port, Uri proxyUri, HttpConnectionPoolManager poolManager) { _kind = kind; _host = host; _sslHost = sslHost; _port = port; _proxyUri = proxyUri; _poolManager = poolManager; _idleConnections = new List <CachedConnection>(); }
private HttpMessageHandlerWrapper SetupHandlerChain() { var poolManager = new HttpConnectionPoolManager(Settings); HttpMessageHandlerWrapper handler = new HttpConnectionHandler(poolManager); if (Settings.AutomaticDecompression != DecompressionMethods.None) { handler = new DecompressionHandler(Settings.AutomaticDecompression, handler); } return(handler); }
public HttpConnectionHandler(HttpConnectionPoolManager httpConnectionPoolManager) { _httpConnectionPoolManager = httpConnectionPoolManager; }