Accessing contents of HttpResponseMessage
<p>I'd like to print the contents of a HTTPResponseMessage.</p>

<pre><code>class Requests
{
    public static async Task SendRequest(int port, string path, KVPairs kvPairs)
    {
        using (var client = new HttpClient())
        {
            client.BaseAddress = new Uri(BASE_ADDRESS + port);
            var request = new HttpRequestMessage(HttpMethod.Put, path);

            request.Content = new FormUrlEncodedContent(kvPairs);

            ProcessResponse(await client.SendAsync(request));
        }
    }

    public static void ProcessResponse (HttpResponseMessage response)
    {
        Console.WriteLine(response.Content.ReadAsStringAsync());
    }
}
</code></pre>

<p>SendRequest works perfectly. But ProcessResponse() prints <code>System.Threading.Tasks.Task\`1[System.String]</code></p>

<p>How can I access and print the contents of the response? Thank you!</p>