properly passing default arguments in http client