vertx / io.vertx.reactivex.ext.web.client / WebClient / wrap

wrap

open static fun wrap(httpClient: HttpClient): WebClient

Wrap an httpClient with a web client and default options.

Parameters

httpClient - the to wrap

Return
the web client

open static fun wrap(httpClient: HttpClient, options: WebClientOptions): WebClient

Wrap an httpClient with a web client and default options.

Only the specific web client portion of the options is used, the io.vertx.core.http.HttpClientOptions of the httpClient is reused.

Parameters

httpClient - the to wrap

options - the Web Client options

Return
the web client