Skip to content

desktop-request-url-stream

The desktop arm of requestUrlStream: requests a URL through node:http / node:https, so the response body streams as it arrives and an abort really cancels the request.

Desktop only: it reads node:http and node:https. Reach it through requestUrlStream, which imports it dynamically on desktop.

Unlike Chromium’s network stack, Node does not read the system proxy settings or certificate store, so a machine that reaches the internet only through a proxy, or that intercepts TLS with its own root certificate, needs the buffered requestUrlEx instead.

Function Description
openDesktopRequestUrlStream Requests a URL through node:http / node:https and returns its body as a stream, following redirects.