Callback from HttpClient on the main thread