Join Slack
Powered by
Hi. Can I somehow create routes in Ktor that are o...
# ktor
d
Daniel
03/27/2023, 3:43 PM
Hi. Can I somehow create routes in Ktor that are only matched against certain client IP addresses or based on which server IP it came from? I would like to handle requests to localhost differently than others.
a
Aleksei Tirman [JB]
03/27/2023, 6:16 PM
Please take a look at the
Route.host
method.
d
Daniel
03/28/2023, 10:25 AM
Wow, thx, didn't know about RouteSelectors. They will come in handy 🙂
4
Views
Open in Slack
Previous
Next