Tip: Request and Response Headers
Published ....
Last modified ....
Share this post on BlueskySee discussion on Bluesky
The other day I was working on some unit tests for a minimal Cloudflare Worker that would redirect the incoming request while forwarding along some of the original request headers. I setup a test to call the worker's fetch handler with a new Request that had some headers provided:
let request = new Request("https://something.com", {
headers: {
"x-foo": "bar"