Files
gravel/stdsrv/src/responder.rs
Kerdonov 8d47704b7e
All checks were successful
Test the running changes / Test (push) Successful in 40s
refactored markdown parsing, added some documentation
2025-11-15 01:41:14 +02:00

13 lines
386 B
Rust

//! Helper trait(s).
use crate::request::HttpRequest;
use crate::response::HttpResponse;
/// Responder trait. Just a respond method that turns a [`HttpRequest`] to a [`HttpResponse`].
///
/// [`HttpRequest`]: ../request/struct.HttpRequest.html
/// [`HttpResponse`]: ../response/struct.HttpResponse.html
pub trait Responder {
fn respond(&self, req: HttpRequest) -> HttpResponse;
}