vertx / io.vertx.ext.web / Cookie / setHttpOnly

setHttpOnly

abstract fun setHttpOnly(httpOnly: Boolean): Cookie

Determines if this cookie is HTTP only. If set to true, this cookie cannot be accessed by a client side script. However, this works only if the browser supports it. For for information, please look here.

Parameters

httpOnly - True if the cookie is HTTP only, otherwise false.