This project relies on the native "http" / "https" modules from Node.js which are not compatible on Edge environments such as Cloudflare Workers, Next.js Edge Routes / middleware nor AWS Lambda Edge.
I would recommend a version built on top of "fetch" witch is getting a native Node.js implementation.