Join Slack
Powered by
Is it possible to add a header to a response in Kt...
# ktor
m
Marcin Bak
09/29/2020, 6:25 PM
Is it possible to add a header to a response in Ktor Server? I have several routes and would like to add a header to a specific ones only
c
cy
09/29/2020, 6:30 PM
Something like route(path) { intercept(call) { } }
➕ 1
cy
09/29/2020, 6:31 PM
In the intecept you can add a header call response.headers.append
👍 1
m
Marcin Bak
09/29/2020, 9:13 PM
thanks
23
Views
Open in Slack
Previous
Next