vertx / io.vertx.kotlin.servicediscovery.types / HttpEndpoint / getWebClientAwait

# getWebClientAwait

`suspend fun getWebClientAwait(discovery: ServiceDiscovery, filter: JsonObject): WebClient`

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

`suspend fun getWebClientAwait(discovery: ServiceDiscovery, filter: JsonObject, conf: JsonObject): WebClient`

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

`suspend fun getWebClientAwait(discovery: ServiceDiscovery, filter: Function<Record, Boolean>): WebClient`

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

`suspend fun getWebClientAwait(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, conf: JsonObject): WebClient`

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