Exemplo n.º 1
0
        private async Task SendLibrary(HttpContext http)
        {
#if DEBUG
            MiddlewareCommon.AddHeaderPreventCaching(http);
#else
            MiddlewareCommon.AddHeaderNeverExpires(http);
#endif
            MiddlewareCommon.AddHeaderJSON(http);
            await MiddlewareCommon.WriteBuffer(http, _library);
        }
Exemplo n.º 2
0
 private static async Task SendAjaxReply(HttpContext http, string json)
 {
     MiddlewareCommon.AddHeaderJSON(http);
     await MiddlewareCommon.WriteUtf8Buffer(http, json);
 }