mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-18 15:02:09 +00:00
27 lines
627 B
C#
27 lines
627 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ShadowEditor.Server.Base
|
|
{
|
|
/// <summary>
|
|
/// XML执行结果
|
|
/// </summary>
|
|
public class XmlResult : HttpResponseMessage
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="content"></param>
|
|
public XmlResult(string content)
|
|
{
|
|
this.StatusCode = HttpStatusCode.OK;
|
|
this.Content = new StringContent(content, Encoding.UTF8, "text/xml");
|
|
}
|
|
}
|
|
}
|