HueLibrary.Bridge.HttpGetAsync C# (CSharp) Method

HttpGetAsync() private method

Sends a GET command via HTTP and returns the response.
private HttpGetAsync ( string commandUrl ) : Task
commandUrl string
return Task
        internal async Task<HttpResponseMessage> HttpGetAsync(string commandUrl)
        {
            using (var client = new HttpClient())
            {
                return await client.GetAsync(new Uri($"http://{UrlBase}{commandUrl}"), 
                    HttpCompletionOption.ResponseContentRead);
            }
        }