Use C++ lambda to handle HttpClient response.