Effect CommunityEC
Effect Community3y ago
20 replies
bug

Troubleshooting "ReferenceError: Headers is not defined" in HTTP client

i'm trying to ogre-guess my way through the HTTP client. i opted to try to reverse engineer some examples from github and this chat, but they are all resulting in ReferenceError: Headers is not defined.

Runtime.runMain(Http.request.get('https://google.com').pipe(Http.client.fetch()))

and also this example: https://github.com/Effect-TS/platform/blob/main/packages/platform-node/examples/http-client.ts

am i using it wrong?
Was this page helpful?