Respond html with HTML DSL

Report a typo

You want to send the following HTML to a user:

<h1>Hello, Mike!</h1>

You decided to do it in the following way:

get("/greeting") {
    call.respondHtml(HttpStatusCode.OK) {
        h1 {
            +"Hello, Mike!"
        }
    }
}

What will the user see in the browser?

Open the IDE and check the result yourself.

Select one option from the list
___

Create a free account to access the full topic