https://kotlinlang.org logo
#ktor
Title
# 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
In the intecept you can add a header call response.headers.append
👍 1
m

Marcin Bak

09/29/2020, 9:13 PM
thanks
18 Views