[feature] allow passing callback to http client