// use actix_web::{guard, web, App, HttpResponse, HttpServer}; #[actix_rt::main] async fn main() -> std::io::Result<()> { HttpServer::new(|| { App::new().route( "/", web::route() .guard(guard::Not(guard::Get())) .to(|| HttpResponse::MethodNotAllowed()), ) }) .bind("127.0.0.1:8088")? .run() .await } //