Skip to main content

HttpSelectorAlg

Trait HttpSelectorAlg 

Source
pub trait HttpSelectorAlg {
    type Selector;

    // Required methods
    fn http_get(&self) -> Self::Selector;
    fn http_post(&self) -> Self::Selector;
    fn http_path(&self, path: &str) -> Self::Selector;
    fn http_prefix(&self, prefix: &str) -> Self::Selector;
}
Expand description

Describes HTTP selectors independently of route composition.

Required Associated Types§

Source

type Selector

The interpreter’s HTTP selector representation.

Required Methods§

Source

fn http_get(&self) -> Self::Selector

Interprets the GET method selector.

Source

fn http_post(&self) -> Self::Selector

Interprets the POST method selector.

Source

fn http_path(&self, path: &str) -> Self::Selector

Interprets an exact path selector.

Source

fn http_prefix(&self, prefix: &str) -> Self::Selector

Interprets a path-prefix selector.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§