route

fun route(responseFn: (Any) -> Response = { Response(OK).body(autoMarshalling.asFormatString(it)) }, errorFn: (Any) -> Response = { Response(BAD_REQUEST).body(autoMarshalling.asFormatString(it)) }, fn: Request.(Owner) -> Result<Any, Any>): HttpHandler(source)