Exemplo n.º 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);
 }
Exemplo n.º 2
0
 private static async Task SendAjaxReply(HttpContext http, string json)
 {
     MiddlewareCommon.AddHeaderJSON(http);
     await MiddlewareCommon.WriteUtf8Buffer(http, json);
 }
Exemplo n.º 3
0
 private async Task SendReply(WebServiceContext context, string data)
 {
     SendHeader(context, ContentType);
     await MiddlewareCommon.WriteUtf8Buffer(context.Http, data);
 }