respondHtmlFragment
suspend fun ApplicationCall.respondHtmlFragment(status: HttpStatusCode = HttpStatusCode.OK, block: FlowContent.() -> Unit)(source)
Responds to a client with an HTML response using the specified block to build an HTML fragment. Unlike respondHtml, this function does not wrap the content in <!DOCTYPE html>, <html>, or <body> tags. This is useful for returning partial HTML content, such as HTMX responses. You can learn more from HTML DSL.