pass spec for http client