tosic_http/services/
mod.rs

1//! [`HttpService`] trait
2
3use crate::traits::handler::Handler;
4use http::Method;
5
6/// A trait for defining a service endpoint.
7pub trait HttpService<Args>: Handler<Args> {
8    /// The HTTP method for the service endpoint.
9    const METHOD: Method = Method::GET;
10    /// The path of the service endpoint.
11    const PATH: &'static str = "";
12}