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

putHeader

abstract fun putHeader(name: String, value: String): HttpRequest<T>

Configure the request to add a new HTTP header.

Parameters

name - the header name

value - the header value

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