Write the code that will log the content of header X-Some-Header from the request. Note that the content should be converted to a string:
post("/header") {
val header = /* your code here */
println("Request header: $header")
}Write the code that will log the content of header X-Some-Header from the request. Note that the content should be converted to a string:
post("/header") {
val header = /* your code here */
println("Request header: $header")
}Create a free account to access the full topic