static void registerStatic(SetupImpl setup, String verb, String path, RouteOptions options, byte[] response) { setup.routes().on(verb, path, new StaticHttpHandler(options, response)); setup.autoActivate(); }
@Override public String toString() { return contentTypeInfo(U.frmt("() -> (static response of %s bytes)", response.length)); }
@Override public String toString() { return contentTypeInfo(U.frmt("() -> (static response of %s bytes)", response.length)); }
static void registerStatic(Setup setup, String verb, String path, RouteOptions options, byte[] response) { setup.routes().on(verb, path, new StaticHttpHandler(options, response)); setup.autoActivate(); }