예제 #1
0
 private static async Task ReplyDocument(HttpContext http, string html, HttpStatusCode code)
 {
     MiddlewareCommon.SetStatusCode(http, code);
     MiddlewareCommon.AddHeaderTextHtml(http);
     MiddlewareCommon.AddHeaderPreventCaching(http);
     await MiddlewareCommon.WriteUtf8Buffer(http, html);
 }
예제 #2
0
 private static async Task SendAjaxReply(HttpContext http, string json)
 {
     MiddlewareCommon.AddHeaderJSON(http);
     await MiddlewareCommon.WriteUtf8Buffer(http, json);
 }
예제 #3
0
 private async Task SendReply(WebServiceContext context, string data)
 {
     SendHeader(context, ContentType);
     await MiddlewareCommon.WriteUtf8Buffer(context.Http, data);
 }