using System; using System.Collections.Generic; using System.Text; namespace Apewer.Web { /// 表示 API 行为结果,主体为文本。 public class TextResult : BytesResult { /// 创建结果实例。 public TextResult(string text, string contentType = "text/plain") : base(text.Bytes(), contentType) { } /// 创建结果实例。 public TextResult(int status, string text, string contentType = "text/plain") : base(status, text.Bytes(), contentType) { } } }