Hello, FastEdge!

The simplest possible FastEdge application — a minimal HTTP handler returning a greeting.

use fastedge::{
    body::Body,
    http::{Request, Response, StatusCode, Error},
};

#[fastedge::http]
fn main(_req: Request<Body>) -> Result<Response<Body>, Error> {
    Response::builder()
        .status(StatusCode::OK)
        .header("content-type", "text/plain")
        .body(Body::from("Hello from FastEdge!"))
}

That's 12 lines of Rust that compile down to a ~50KB Wasm binary. Deploy it to 100+ edge locations worldwide.