Skip to content

Instantly share code, notes, and snippets.

CalArcher /
Last active April 27, 2022 21:23
Fetch both HTTP and HTTPS in any nodejs version before or after nodejs18

Fetch nodejs polyfill for HTTP & HTTPS

Created: 2022-04-27


This is taken from gjuoun's original fetch nodejs polyfill and modified to allow fetching from both HTTP and HTTPS.