pub fn json(contents: &str) -> Response
Expand description

Returns a json Response object for the given content.

Examples

use kalgan::http::response;
use kalgan::http::response::Response;

let response: Response = response::json("{\"name\": \"John\", \"surname\": \"Doe\"}");