Specify host header in fetch request
I'm trying to health-check load balanced hosts, for which I need to fetch using IP address + Host header.
In curl it's super simple, like this:
However I cannot replicate the same in a Worker JS environment. For example this does not work (network connection lost):
How can I make either fetch work with Host headers, or use a lower level library for that?
In curl it's super simple, like this:
However I cannot replicate the same in a Worker JS environment. For example this does not work (network connection lost):
How can I make either fetch work with Host headers, or use a lower level library for that?