Skip to main content

gate

Function gate 

Source
pub fn gate(
    method: &Method,
    presented: Option<&str>,
    token: &Token,
) -> Option<Response<Full<Bytes>>>
Expand description

Check the two things that must hold before any control route runs, returning the refusal if there is one.

Separated from routing so that a caller cannot reach a route without going through it: there is no path to the annotation handlers that does not pass this function first.