vertx / io.vertx.reactivex.servicediscovery.types / HttpEndpoint / getWebClient

# getWebClient

`open static fun getWebClient(discovery: ServiceDiscovery, filter: JsonObject, resultHandler: Handler<AsyncResult<WebClient>>): Unit`

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

`discovery` - The service discovery instance

`filter` - The filter, optional

`resultHandler` - The result handler

`open static fun getWebClient(discovery: ServiceDiscovery, filter: JsonObject, conf: JsonObject, resultHandler: Handler<AsyncResult<WebClient>>): Unit`

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

`discovery` - The service discovery instance

`filter` - The filter, optional

`conf` - the configuration of the client

`resultHandler` - The result handler

`open static fun getWebClient(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, resultHandler: Handler<AsyncResult<WebClient>>): Unit`

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

`discovery` - The service discovery instance

`filter` - The filter

`resultHandler` - The result handler

`open static fun getWebClient(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, conf: JsonObject, resultHandler: Handler<AsyncResult<WebClient>>): Unit`

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

`discovery` - The service discovery instance

`filter` - The filter

`conf` - the configuration of the client

`resultHandler` - The result handler