Extract httpclient api