© 2026 Hedgehog Software, LLC
use http::{Response, StatusCode}; use worker::{event, Context, Env, HttpRequest}; #[event(fetch)] async fn fetch( _req: HttpRequest, _env: Env, _ctx: Context, ) -> worker::Result<http::Response<String>> { let response = Response::builder() .status(StatusCode::OK) .body("Hello from http".to_string()) .unwrap(); Ok(response) }
Join the Discord to ask follow-up questions and connect with the community
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
87,367 Members