Implement synchronous http request and create client