matching signature of createHttpClient function