VelocityContent
class VelocityContent(template: String, model: Map<String, Any>, etag: String?, contentType: ContentType)
Content copied to clipboard
Represents a response content that could be used to respond with call.respond(VelocityContent(...))
Parameters
template
name to be resolved by velocity
model
to be passed to the template
etag
header value (optional)
contentType
(optional, text/html
with UTF-8 character encoding by default)
Constructors
Link copied to clipboard
fun VelocityContent(template: String, model: Map<String, Any>, etag: String? = null, contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))
Content copied to clipboard