invirt.http4k.hotwire.kt Maven / Gradle / Ivy
package invirt.http4k
import org.http4k.core.Response
import org.http4k.core.Status
fun Response.turboStream(): Response {
return header("Content-Type", "text/vnd.turbo-stream.html")
}
fun turboStreamRefresh(): Response {
return Response(Status.OK)
.body(""" """)
.turboStream()
}