You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
577 B
20 lines
577 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Apewer.Web
|
|
{
|
|
|
|
/// <summary>表示 API 行为结果,主体为文本。</summary>
|
|
public class TextResult : BytesResult
|
|
{
|
|
|
|
/// <summary>创建结果实例。</summary>
|
|
public TextResult(string text, string contentType = "text/plain") : base(text.Bytes(), contentType) { }
|
|
|
|
/// <summary>创建结果实例。</summary>
|
|
public TextResult(int status, string text, string contentType = "text/plain") : base(status, text.Bytes(), contentType) { }
|
|
|
|
}
|
|
|
|
}
|
|
|