# Module: vertx-service-discovery-js/http_endpoint

### Classes

HttpEndpoint

### Methods

#### (static) HttpEndpoint.createRecord(name, ssl, host, port, root, metadata) → {Object}

Same as HttpEndpoint#createRecord but let you configure whether or not the service is using `https`.

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | string | the service name
`ssl` | boolean | whether or not the service is using HTTPS
`host` | string | the host (IP or DNS name), it must be the _public_ IP / name
`port` | number | the port, it must be the _public_ port
`root` | string | the path of the service, "/" if not set
`metadata` | Object | additional metadata

Source:
  - vertx-service-discovery-js/http_endpoint.js, line 55

##### Returns:

the created record

Type
  Object

#### (static) HttpEndpoint.getClient(discovery, filter, 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.

##### Parameters:

Name | Type | Description
--- | --- | ---
`discovery` | ServiceDiscovery | The service discovery instance
`filter` | Object | The filter, optional
`resultHandler` | function | The result handler

Source:
  - vertx-service-discovery-js/http_endpoint.js, line 77