private static async Task WriteResponseAsync(HttpServerResponse response, StreamSocket socket)
        {
            using (var output = socket.OutputStream)
            {
                await output.WriteAsync(response.ToBytes().AsBuffer());

                await output.FlushAsync();
            }
        }
Exemple #2
0
        private static async Task WriteResponseAsync(HttpServerResponse response, IOutputStream output)
        {
            await output.WriteAsync(response.ToBytes().AsBuffer());

            await output.FlushAsync();
        }