Join Slack
Powered by
Are there any guides on how to write and use ktor ...
# ktor
b
Big Chungus
11/18/2020, 10:12 AM
Are there any guides on how to write and use ktor middleware (if it's even possible)
d
David Hernando
11/18/2020, 10:40 AM
This can be a starting point
https://ktor.io/docs/lifecycle.html#applicationcallpipeline
David Hernando
11/18/2020, 10:41 AM
you can also take inspiration in already built Features, like
DefaultHeaders
for example
j
Joris PZ
11/19/2020, 12:51 PM
I recently implemented a route authorization middleware, and wrote a blog explaining my current understanding of Ktor's pipeline design, maybe it can help:
https://ximedes.com/2020-09-17/role-based-authorization-in-ktor/
176
Views
Open in Slack
Previous
Next