use actix_web::body::BoxBody; use actix_web::{HttpRequest, HttpResponse, Responder}; /// An empty response pub struct Empty; impl Responder for Empty { type Body = BoxBody; fn respond_to(self, _: &HttpRequest) -> HttpResponse { HttpResponse::Ok().finish() } }