HttpRequestEngine(EngineConfigType type, ExecutorService executor, HttpClient client, IHttpRequestEngineConfig config, IRequestOrigin requestOrigin, IHTMLParser htmlParser) {
this.encodingStrategy = RequestEngineConfig.getRequestEncodingStrategy(type);
this.executor = executor;
this.client = client;
this.decompressingClient = new VegaDecompressingHttpClient(client);
this.config = config;
this.requestOrigin = requestOrigin;
this.htmlParser = htmlParser;
rateLimit = new RateLimiter(config.getRequestsPerMinute());
cookieMatcher = new CookieMatcher(getClientDowncast());