Examples of reading in a POST request body of type JSON, form-data, and blobs before it reaches the origin server.
Although this router works fine I made a new one, based on experiences using it in production with Cloudflare Workers.
simple cloudflare worker recipe to send logs into logdna
Here's a simple CloudFlare Worker with a built-in router that allows you to separate your worker logic into different functions and/or "controllers" so you can achieve a clean separation of concerns while working within the 1 script limit for non-Enterprise plans.
Examples of making fetch requests from within your Worker script including generating JSON post requests then reading in the resulting response body, aggregating multiple requests into one response, and following/catching redirects.
The main features of cloudflare/worker-template-fetch are: Worker Recipes.
Open-source alternatives to cloudflare/worker-template-fetch include: ashleygwilliams/worker-template-requests — Examples of reading in a POST request body of type JSON, form-data, and blobs before it reaches the origin server. berstend/service-worker-router — Although this router works fine I made a new one, based on experiences using it in production with Cloudflare Workers. boynet/cf-logdna-worker — simple cloudflare worker recipe to send logs into logdna. cloudflare/rustwasm-worker-template — A template for kick starting a Cloudflare worker project using workers-rs. cloudflare/worker-examples — Cloudflare Workers let you deploy serverless code instantly across the globe for exceptional performance, reliability,… anderly/cloudflare-worker-routing — Here's a simple CloudFlare Worker with a built-in router that allows you to separate your worker logic into different…