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

Returns a xml Response object for the given content.

Examples

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

let response: Response = response::xml("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\
<user>\
 <name>John</name>\
 <surname>Doe</author>\
</user>");