class SessionTransportCookie : SessionTransport
SessionTransport that adds a Set-Cookie header and reads Cookie header for the specified cookie name, and a specific cookie configuration after applying/un-applying the specified transforms defined by transformers.
SessionTransportCookie(name: String, configuration: CookieConfiguration, transformers: List<SessionTransportTransformer>)
SessionTransport that adds a Set-Cookie header and reads Cookie header for the specified cookie name, and a specific cookie configuration after applying/un-applying the specified transforms defined by transformers. |
val configuration: CookieConfiguration
is a cookie configuration |
|
val name: String
is a cookie name |
|
val transformers: List<SessionTransportTransformer>
is a list of session transformers |
fun clear(call: ApplicationCall): Unit
Clears session information from a specific call. |
|
fun receive(call: ApplicationCall): String?
Gets session information from a call and returns a String if success or null if failed. |
|
fun send(call: ApplicationCall, value: String): Unit
|
|
fun toString(): String |