vertx / io.vertx.ext.web.client / HttpRequest / virtualHost

# virtualHost

`abstract fun virtualHost(value: String): HttpRequest<T>`

Configure the request to use a virtual host `value`. Usually the header host (:authority pseudo header for HTTP/2) is set from the request host value since this host value resolves to the server IP address. Sometimes you need to set a host header for an address that does not resolve to the server IP address. The virtual host value overrides the value of the actual host header (:authority pseudo header for HTTP/2). The virtual host is also be used for SNI.

Return
a reference to this, so the API can be used fluently