Request Service Discovery
Utility module for making HTTP requests against discoverable services registered with ZooKeeper.
Basic Usage
The following is the most basic usage of the client;
'use strict'; var RequestServiceDiscovery = ; // Instantiate a clientvar client = connectionString: '127.0.0.1:2181' basePath: 'services' serviceName: 'my/service/v1' providerStrategy: 'RoundRobin' verbose: false timeout: 1000 retries: 2 minTimeout: 5 maxTimeout: 50 correlationHeaderName: 'My-Correlation-ID' connectTimeout: 5000 sessionTimeout: 30000; var query = "myParam": "myValue" ; var headers = "Content-Type": "application/json" ; var body = "prop1": "value1" "prop2": "value2" ; client;