Ktor
Toggle table of contents
3.3.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
common
Platform filter
common
Switch theme
Search in API
Ktor
ktor-server-di
/
io.ktor.server.plugins.di
/
DependencyRegistry
/
KeyContext
Key
Context
inner
class
KeyContext
<
T
>
(
val
key
:
DependencyKey
)
(
source
)
DSL class for performing multiple actions for the given key and type.
Report a problem
Members
Constructors
Key
Context
Link copied to clipboard
constructor
(
key
:
DependencyKey
)
Properties
key
Link copied to clipboard
val
key
:
DependencyKey
Functions
cleanup
Link copied to clipboard
infix
fun
cleanup
(
cleanup
:
(
T
)
->
Unit
)
provide
Link copied to clipboard
infix
fun
provide
(
provide
:
suspend
DependencyResolver
.
(
)
->
T
?
)