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 */
    call.application.environment.log.info("Requet header: $header")
}
Enter a short text
___

Create a free account to access the full topic