cy
06/21/2016, 7:56 PMstatusPage
and errorPage
so you can configure generalized status/error pages for the application
- application.transform
and call.transform
should be used to register new response message transformers (so you can send custom messages via call.respond()
).
so now instead of
call.interceptRespond(phase) { obj ->
if (obj is MyType) {
call.respond(SomeResponse(obj.something))
}
}
you should register transformer like this
application.transform.register<MyType> { my -> SomeResponse(my.something) }