Skip to main content

http_error

Macro http_error 

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

Unwraps a Result. If it’s an Err, automatically returns an HTTP 400 Bad Request response immediately, using fr-rust’s built-in http_bad helper.