Sends XML-RPC output to the browser.
string $xml: XML to send to the browser.
\Symfony\Component\HttpFoundation\Response A Response object.
function xmlrpc_server_output($xml) {
$xml = '<?xml version="1.0"?>' . "\n" . $xml;
$headers = array(
'Content-Length' => strlen($xml),
'Content-Type' => 'text/xml',
);
return new Response($xml, 200, $headers);
}