OpenSim.Framework.WebUtil.SendXMLResponse C# (CSharp) Method

SendXMLResponse() public static method

Send LLSD to an HTTP client in application/llsd+xml form
public static SendXMLResponse ( OpenSim.Framework.Servers.HttpServer.OSHttpResponse response, OSDMap body ) : void
response OpenSim.Framework.Servers.HttpServer.OSHttpResponse HTTP response to send the data in
body OSDMap LLSD to send to the client
return void
        public static void SendXMLResponse(OSHttpResponse response, OSDMap body)
        {
            byte[] responseData = OSDParser.SerializeLLSDXmlBytes(body);

            response.ContentEncoding = Encoding.UTF8;
            response.ContentLength = responseData.Length;
            response.ContentType = "application/llsd+xml";
            response.Body.Write(responseData, 0, responseData.Length);
        }