Classes
Methods
(static) HttpEndpoint.createRecord(name, host) → {Object}
Same as HttpEndpoint#createRecord but without metadata, using the port 80
and using "/" as root.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | the name |
host |
string | the host |
Returns:
the created record
- Type
- Object
(static) HttpEndpoint.getClient(discovery, filter, conf, resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured . The async result
is marked as failed is there are no matching services, or if the lookup fails. This method accepts a
configuration for the HTTP client.
Parameters:
| Name | Type | Description |
|---|---|---|
discovery |
ServiceDiscovery | The service discovery instance |
filter |
function | The filter |
conf |
Object | the configuration of the client |
resultHandler |
function | The result handler |
(static) HttpEndpoint.getWebClient(discovery, filter, conf, resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured . The async result
is marked as failed is there are no matching services, or if the lookup fails. This method accepts a
configuration for the HTTP client.
Parameters:
| Name | Type | Description |
|---|---|---|
discovery |
ServiceDiscovery | The service discovery instance |
filter |
function | The filter |
conf |
Object | the configuration of the client |
resultHandler |
function | The result handler |