orangy
jrp
05/29/2017, 8:38 PMdave
05/29/2017, 8:42 PMomarkj
05/29/2017, 9:56 PMomarkj
05/29/2017, 9:56 PMgregopet
05/30/2017, 6:48 AMgregopet
05/30/2017, 6:55 AMsimple_work
05/30/2017, 10:02 AMorangy
tipsy
06/05/2017, 7:09 PMorangy
tipsy
06/05/2017, 7:41 PMtipsy
06/05/2017, 7:42 PMorangy
Before handlers, After handlersKotlin code not fully converted, can remove parenths
orangy
Handler groupssemicolons 🙂
orangy
get
with roles could better have lambda last, role second paramtipsy
06/05/2017, 7:49 PMorangy
orangy
app.exception
could use reified generics app.exception<NullPointerException> { … }
tipsy
06/05/2017, 7:50 PMorangy
HaltException
– I find it weird name, I think it should halt the server or something.tipsy
06/05/2017, 7:51 PMorangy
tipsy
06/05/2017, 7:52 PMorangy
orangy
inline operator fun Application.invoke(builder: Application.()->Unit) = builder()
And you can
app {
exception(…)
error(…)
before(…)
get(…)
}
orangy
tipsy
06/05/2017, 7:55 PMIn Kotlin we would make a builder,what about when you're mutating an existing object, like
response.status(200).body("ok")
tipsy
06/05/2017, 7:56 PMI assume from the API the whole framework is sync?yes
tipsy
06/05/2017, 7:56 PMrequest.async()
method available for those who need it