Dariusz Kuc
02/07/2023, 9:01 PMContentNegotiation
and Routing
plugins so was wondering what would be the order of execution if users specify another plugin (e.g. CORS)
current flow
<request> --> ContentNegotiation --> Routing --> [my plugin app logic] -> <response>
expected usage
fun Application.myModule() {
install(MyPlugin) { // configuration }
}
Guessing the plugin execution order is implied by the code order but just want to double check, e.g.
fun Application.myModule() {
install(CORS) // runs before my plugin
install(MyPlugin) { // configuration }
install(Foo) // can process response of my plugin
}
Aleksei Tirman [JB]
02/08/2023, 7:36 AMinstall
calls.