Azi.Amazon.CloudDrive.AmazonDrive.SendResponse C# (CSharp) Method

SendResponse() private method

private SendResponse ( HttpListenerResponse response, byte body ) : Task
response System.Net.HttpListenerResponse
body byte
return Task
        private async Task SendResponse(HttpListenerResponse response, byte[] body)
        {
            response.StatusCode = 200;
            response.ContentLength64 = body.Length;
            await response.OutputStream.WriteAsync(body, 0, body.Length).ConfigureAwait(false);
            response.OutputStream.Close();
        }