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\"}");
Returns a json Response
object for the given content.
use kalgan::http::response;
use kalgan::http::response::Response;
let response: Response = response::json("{\"name\": \"John\", \"surname\": \"Doe\"}");