Introducing CloudFront Functions – Run Your Code at ...https://aws.amazon.com/blogs/aws/introducing-cloudfront-functions-run-your-code-at-the-edge-with-low-latency-at-any-scale/
11%
Edge Platforms Compared - Cloudflare vs AWS vs Fastly (2026)https://blog.easecloud.io/cloud-infrastructure/edge-computing-for-saas-performance/
11%
Using a Netlify Edge Function to cut down on header bloat by ...https://dev.to/philw_/using-a-netlify-edge-worker-to-cut-down-on-header-bloat-by-removing-html-only-headers-from-your-static-assets-3nh9
11%
Customize cache behavior with Workers · Cloudflare Cache (CDN) docshttps://developers.cloudflare.com/cache/interaction-cloudflare-products/workers/
I'd narrow the field to Cloudflare Workers, Fastly Compute, Akamai EdgeWorkers, AWS CloudFront Functions/Lambda@Edge, and Vercel Routing Middleware.
Cloudflare is particularly direct for this use case: its documentation explicitly describes a Worker modifying the incoming request—for example, rewriting the URL or adding headers—before calling fetch() to continue through the cache/origin. Cloudflare Docs Cloudflare also has declarative Request Header Transform Rules if you don't actually need arbitrary code.
Vercel's Routing Middleware similarly runs before the request is processed and supports rewrites and request modification; Vercel even documents adding/updating/deleting request headers in middleware.
If you tell me whether you're looking for (a) a CDN in front of an arbitrary origin, (b) an API gateway, or (c) hosting an application, I can compare the relevant platforms on latency, runtime limits, pricing, cold starts, header manipulation, and origin rewrites.
Several major serverless edge computing platforms allow developers to execute custom code close to users in order to inspect, rewrite, and manipulate HTTP requests, responses, and headers on the fly.
Top Edge Platforms for Request and Header Manipulation
Cloudflare Workers : Runs lightweight JavaScript, TypeScript, Wasm, or Python scripts across Cloudflare's massive global network. It intercepts incoming requests using standard Fetch API objects, making it trivial to modify request/response headers, rewrite URLs, or redirect traffic with near-zero cold starts.
AWS Lambda@Edge & CloudFront Functions : Integrated directly into Amazon CloudFront. Lambda@Edge handles heavy, multi-millisecond request/response transformations and auth checks using Node.js or Python at regional edge caches . For ultra-lightweight, sub-millisecond header tweaks and URL rewrites, CloudFront Functions provides a restricted JavaScript environment optimized for blistering speed.
Vercel Edge Functions : Built on top of Vercel’s edge network with deep framework integration (especially Next.js). They use standard Web APIs (Request and Response ) to easily rewrite paths, inject security headers, or personalize content before it reaches the user or origin.
Netlify Edge Functions : Powered by Deno, Netlify Edge Functions allow developers to programmatically parse, redirect, or alter incoming requests and outgoing response headers right at the CDN layer before static or dynamic assets are delivered.
Fastly Compute : Built on WebAssembly (Wasm), Fastly Compute lets you write edge logic in languages like Rust, JavaScript, Go, and Python. It offers sub-millisecond execution times and fine-grained, programmatic control over HTTP headers, shielding, and request routing.
If you'd like, let me know:
Your preferred programming language (JavaScript/TypeScript, Rust, Python)
Your current hosting provider or CDN (AWS, Cloudflare, Vercel, etc.)
I can provide a code snippet showing how to implement a custom header rewrite or URL redirect for your setup.