tosic-http 0.0.3

A basic but powerful HTTP server implementation based on `actix-web`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! [`HttpService`] trait

use crate::traits::handler::Handler;
use http::Method;

/// A trait for defining a service endpoint.
pub trait HttpService<Args>: Handler<Args> {
    /// The HTTP method for the service endpoint.
    const METHOD: Method = Method::GET;
    /// The path of the service endpoint.
    const PATH: &'static str = "";
}