function xmlrpc_server_output

Sends XML-RPC output to the browser.

Parameters

string $xml: XML to send to the browser.

Return value

\Symfony\Component\HttpFoundation\Response A Response object.

2 calls to xmlrpc_server_output()
xmlrpc_server in drupal/core/modules/xmlrpc/xmlrpc.server.inc
Invokes XML-RPC methods on this server.
xmlrpc_server_error in drupal/core/modules/xmlrpc/xmlrpc.server.inc
Throws an XML-RPC error.

File

drupal/core/modules/xmlrpc/xmlrpc.server.inc, line 146
Page callback file for the xmlrpc module.

Code

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);
}