jvmAndNixMain.io.ktor.server.sessions.SessionProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ktor-server-sessions-linuxx64 Show documentation
Show all versions of ktor-server-sessions-linuxx64 Show documentation
Ktor is a framework for quickly creating web applications in Kotlin with minimal effort.
/*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.server.sessions
import kotlin.reflect.*
/**
* Specifies a provider for a session with the specific [name] and [type].
*
* @param transport specifies the [SessionTransport] for this provider
* @param tracker specifies the [SessionTracker] for this provider
* @property name session name
* @property type session instance type
*/
public class SessionProvider(
public val name: String,
public val type: KClass,
public val transport: SessionTransport,
public val tracker: SessionTracker
) {
override fun toString(): String {
return "SessionProvider(name = $name, type = $type, transport = $transport, tracker = $tracker)"
}
}