Hey ! What order plugins get called if there are ...
# ktor
s
Hey ! What order plugins get called if there are multiple plugins performing operations on one phase ? For example on call setup phase (
on(CallSetup)
) I have three different plugins registered. What is the execution strategy ?
a
The handlers will be executed in the same order as plugins are installed. For example, the first installed plugin that adds a handler to
CallSetup
hook will be executed first.
s
okay. if a application level plugin is installed on
CallSetup
and then a route scoped plugin is also installed on
CallSetup
then first application level plugin will be executed first I assume ?
a
Yes, you are right.
👍 1
426 Views