ktor
2.2.x
Select version
3.3.x
3.2.x
3.1.x
3.0.x
2.3.x
2.2.x
2.0.x
1.6.x
jvmAndNix
ktor-server-sessions
/
io.ktor.server.sessions
/
get
get
jvmAndNix
inline
fun
<
T
:
Any
>
CurrentSession
.
get
(
)
:
T
?
fun
<
T
:
Any
>
CurrentSession
.
get
(
klass
:
KClass
<
T
>
)
:
T
?
Gets a session instance with the type
T
.
Throws
Illegal
State
Exception
if no session provider is registered for the type
T