macro_rules! end {
() => { ... };
}Expand description
This macro is just a syntactic sugar over the Ok(MiddlewareResult::End)
Behavior: Instantly halts all further processing (skipping remaining
middleware and routing) and sends the current state of the Response to the client.
Warning: Ensure you have populated the Response (status, body, etc.) before
calling end!. Otherwise it will send a empty Response with a 200 code.