function buildClient(client, config) {
			return when(client, function (client) {
				if (config.errorCode !== false) {
					client = errorCode(client, { code: config.errorCode });
				}
				if (config.mime !== false) {
					client = mime(client, { mime: config.mime || 'application/x-www-form-urlencoded', accept: config.accept });
				}
				if (config.entity !== false) {
					client = entity(client);
				}
				client = pathPrefix(client, { prefix: config.prefix });
				return client;
			});
		}
/**
		 * Builds the rest client for the provided config
		 *
		 * @param client the client to wrap
		 * @param config configuration for client interceptors
		 */
Builds the rest client for the provided config
@param client the client to wrap
@param config configuration for client interceptors
Builds the rest client for the provided config @param client the client to wrap @param config configuration for client interceptors
function buildClient(client, config) {
			return when(client, function (client) {
				if (config.errorCode !== false) {
					client = errorCode(client, { code: config.errorCode });
				}
				if (config.mime !== false) {
					client = mime(client, { mime: config.mime || 'application/x-www-form-urlencoded', accept: config.accept });
				}
				if (config.entity !== false) {
					client = entity(client);
				}
				client = pathPrefix(client, { prefix: config.prefix });
				return client;
			});
		}
function buildClient ( client , config ) { return when ( client , function ( client ) { if ( config . errorCode !== false ) { client = errorCode ( client , { code : config . errorCode } ) ; } if ( config . mime !== false ) { client = mime ( client , { mime : config . mime || 'application/x-www-form-urlencoded' , accept : config . accept } ) ; } if ( config . entity !== false ) { client = entity ( client ) ; } client = pathPrefix ( client , { prefix : config . prefix } ) ; return client ; } ) ; }
Builds the rest client for the provided config
 @param client the client to wrap
 @param config configuration for client interceptors
Builds the rest client for the provided config @param client the client to wrap @param config configuration for client interceptors