Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
improved http2 support. (#846)
petrpatek119598dfec70
diff --git a/src/utils_request.js b/src/utils_request.jsindex 8b3d9b513..cbe35774e 100644--- a/src/utils_request.js+++ b/src/utils_request.js@@ -49,6 +49,9 @@ const DEFAULT_HTTP_REQUEST_OPTIONS = {* Function accepts `response` object as a single parameter and should return true or false.* If function returns true request gets aborted. This function is passed to the* [@apify/http-request](https://www.npmjs.com/package/@apify/http-request) NPM package.+ * @property {boolean} [useHttp2=false]+ * If set to true, it will additionally accept HTTP2 requests.+ * It will choose either HTTP/1.1 or HTTP/2 depending on the ALPN protocol.*//**