vertx / io.vertx.ext.web / Cookie / cookie

cookie

open static fun cookie(name: String, value: String): Cookie

Create a new cookie

Parameters

name - the name of the cookie

value - the cookie value

Return
the cookie

open static fun cookie(nettyCookie: Cookie): Cookie

Create a new cookie from a Netty cookie

Parameters

nettyCookie - the Netty cookie

Return
the cookie