Skip to main content

status_text

Function status_text 

Source
pub fn status_text(status: u16, body: impl Into<String>) -> Response
Expand description

Build a response with an arbitrary status code and a text/plain body.