Hey is there any sort of diagram out there that sh...
# ktor
a
Hey is there any sort of diagram out there that shows the order of execution for the various phases in which a plugin can execute? (i.e. something like CallSetup->CallReceive->.....->ResponseSent)
a
I hope you will find those helpful:
Copy code
Incoming request
↓
EnginePipeline: Before
				↓
				Call -> ApplicationCallPipeline: Setup (CallId, ForwardedHeaders)
												 ↓
											 	 Monitoring (CallLogging, DropwizardMetrics, MicrometerMetrics)
											 	 ↓
											 	 Plugins (Sessions, CORS, AuthenticationInterceptors, AutoHeadResponse)
											 	 ↓
											 	 Call (Routing)
                                                 ↓
											 	 Fallback
🙏 2
Copy code
ApplicationCall.receive()
↓
ApplicationReceivePipeline: Before
							↓
							Transform (Default transformations, ContentNegotiation)
							↓
							After
Copy code
ApplicationCall.respond()
↓
ApplicationSendPipeline: Before
						 ↓
					     Transform (ContentNegotiation)
					     ↓
					     Render (Default transformations)
					     ↓
					     ContentEncoding (Compression, PartialContent)
					     ↓
					     After
					     ↓
					     Engine -> Send response by an engine