Return http request handle from call_api and call_endpoint