make use of the stronger typing in HttpClient