Exemple #1
0
 public HttpProxyClientDataAdapter(FullHttpProxyServer server, ProxyNetworkService service, Logger logger)
 {
     _server             = server;
     _service            = service;
     _cancellationSource = new CancellationTokenSource();
     _conns      = new LockedQueue <ProxyConnection>(-1, _cancellationSource.Token);
     _logger     = logger;
     _graphs     = new List <NetGraph>();
     Description = "HTTP Proxy Server";
 }
Exemple #2
0
            public HttpProxyServerAdapter(FullHttpProxyServer server, DataAdapterToStream stm, HttpRequestHeader initialRequest, Logger logger)
            {
                _server  = server;
                _stm     = stm;
                _writer  = new DataWriter(_stm);
                _request = initialRequest;
                ProcessProxyRequestHeaders(_request);
                _config            = new HttpParserConfig();
                _config.StreamBody = true;
                _logger            = logger;
                _requestQueue      = new Queue <HttpRequestHeader>();
                _requestQueue.Enqueue(_request);

                Description = stm.Description;
            }
Exemple #3
0
 public HttpProxyDummyClient(FullHttpProxyServer server, ProxyNetworkService service)
 {
     _server  = server;
     _service = service;
 }
            public HttpProxyServerAdapter(FullHttpProxyServer server, DataAdapterToStream stm, HttpRequestHeader initialRequest, Logger logger)
            {
                _server = server;
                _stm = stm;
                _writer = new DataWriter(_stm);
                _request = initialRequest;
                ProcessProxyRequestHeaders(_request);
                _config = new HttpParserConfig();
                _config.StreamBody = true;
                _logger = logger;
                _requestQueue = new Queue<HttpRequestHeader>();
                _requestQueue.Enqueue(_request);

                Description = stm.Description;
            }
 public HttpProxyDummyClient(FullHttpProxyServer server, ProxyNetworkService service)
 {
     _server = server;
     _service = service;
 }
 public HttpProxyClientDataAdapter(FullHttpProxyServer server, ProxyNetworkService service, Logger logger)
 {
     _server = server;
     _service = service;
     _cancellationSource = new CancellationTokenSource();
     _conns = new LockedQueue<ProxyConnection>(-1, _cancellationSource.Token);
     _logger = logger;
     _graphs = new List<NetGraph>();
     Description = "HTTP Proxy Server";
 }