FastEdge gives you full control over request routing at the edge. In this post we explore Reading and Modifying Request Bodies — a core pattern for directing traffic intelligently across the global edge network.
How It Works
Read, inspect, and modify HTTP request and response bodies at the edge — useful for validation, transformation, and injection. By processing requests at the edge, you reduce latency and offload work from your origin servers.
Implementation
The pattern is implemented using the FastEdge Rust SDK. Clone the repo and build the example:
git clone https://github.com/G-Core/FastEdge-sdk-rust.git
cd FastEdge-sdk-rust/examples/
# Find the Body example
cargo build --release
Deploy to the Edge
Upload the resulting .wasm to the FastEdge portal and attach it to your HTTP application. Your routing logic is now live across 100+ PoPs worldwide.
Tip: Combine this pattern with other edge capabilities — e.g., add header manipulation on top of GeoIP routing for full control.