Respond html

Report a typo

You want to send the following HTML code to a user:

<h1>Hello, Mike!</h1>

You decided to do it in the following way:

get("/greet") {
    call.respondText("<h1>Hello, Mike!</h1>")
}

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