Skip to main content

text_response

Macro text_response 

Source
macro_rules! text_response {
    ($text:expr) => { ... };
}
Expand description

Return a plain-text response from a handler.

§Example

use ferro_rs::text_response;

pub async fn ping() -> Response {
    text_response!("pong")
}