#[http]Expand description
Main function attribute for a FastEdge application.
ยงUsage
The main function takes a request and returns a response or an error. For example:
use anyhow::Result;
use fastedge::http::{Request, Response, StatusCode};
use fastedge::body::Body;
#[fastedge::http]
fn main(req: Request<Body>) -> Result<Response<Body>> {
Response::builder().status(StatusCode::OK).body(Body::empty())
}