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