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.
macro_rules! http_assert_auth {
($condition:expr, $msg:expr) => { ... };
}Evaluates a boolean condition. If false, short-circuits the execution path and returns an HTTP 401 Unauthorized error with a custom message.