toggle menu
ktor
3.0.0-beta-1
3.0.0
3.0.0-rc-1
3.0.0-beta-2
3.0.0-beta-1
2.3.12
2.2.4
2.0.3
1.6.8
jvmAndNix
switch theme
search in API
ktor-server-sessions
/
io.ktor.server.sessions
/
set
set
jvmAndNix
inline
fun
<
T
:
Any
>
CurrentSession
.
set
(
value
:
T
?
)
fun
<
T
:
Any
>
CurrentSession
.
set
(
value
:
T
?
,
klass
:
KClass
<
T
>
)
Sets a session instance with the type
T
.
Throws
Illegal
State
Exception
if no session provider is registered for the type
T