Skip to main content

json_response

Function json_response 

Source
pub fn json_response(status: u16, body: &str) -> Response<Full<Bytes>>
Expand description

Create a JSON response with the given status and body