configure
methodclient.configure()
Setup the restify client
client.configure = function(options){
if (!options) { options = {}; }
var config = {};
// Cheap and dirty default values.
config.version = '*';
config.url = options.url || 'http://localhost:8888';
if (options.retry) { config.retry = {"retries":options.retry}; }
config.timeout = options.timeout || 1;
api = restify.createJsonClient(config);
if (options.username && options.password) {
api.basicAuth(options.username, options.password);
}
};
// Configure the restify client
client.configure(options);