use of io.vertx.up.atom.Envelop in project vertx-zero by silentbalanceyh.
the class Flower method continuous.
static <T> Envelop continuous(final RoutingContext context, final T entity) {
final Envelop envelop = Envelop.success(entity);
envelop.setHeaders(context.request().headers());
envelop.setUser(context.user());
envelop.setSession(context.session());
envelop.setContext(context.data());
return envelop;
}
Aggregations