Skip to main content

http_assert_auth

Macro http_assert_auth 

Source
macro_rules! http_assert_auth {
    ($condition:expr, $msg:expr) => { ... };
}
Expand description

Evaluates a boolean condition. If false, short-circuits the execution path and returns an HTTP 401 Unauthorized error with a custom message.