HeaderIdSessionBuilder

class HeaderIdSessionBuilder<S : Any> : HeaderSessionBuilder<S>

A configuration that allows you to configure header settings for Sessions.

Constructors

Link copied to clipboard
fun <S : Any> HeaderIdSessionBuilder(type: KClass<S>)

Functions

Link copied to clipboard
fun identity(f: () -> String)

Registers a function used to generate a session ID.

Link copied to clipboard
fun transform(transformer: SessionTransportTransformer)

Registers a transformer used to sign and encrypt session data.

Properties

Link copied to clipboard
var serializer: SessionSerializer<S>

Specifies a serializer used to serialize session data.

Link copied to clipboard
var sessionIdProvider: () -> String

A function used to provide a current session ID.

Link copied to clipboard
val transformers: List<SessionTransportTransformer>

Gets transformers used to sign and encrypt session data.

Link copied to clipboard
val type: KClass<S>

session instance type

Link copied to clipboard
val typeInfo: KType