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