HttpService

Trait HttpService 

Source
pub trait HttpService<Args>: Handler<Args> {
    const METHOD: Method = Method::GET;
    const PATH: &'static str = "";
}
Expand description

A trait for defining a service endpoint.

Provided Associated Constants§

Source

const METHOD: Method = Method::GET

The HTTP method for the service endpoint.

Source

const PATH: &'static str = ""

The path of the service endpoint.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§