Request body

Report a typo

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")
}
Enter a short text
___

Create a free account to access the full topic