for (Class<?> clazz : ReadmeWithAnnotatedHttpService.class.getDeclaredClasses()) {
if (Arrays.asList(clazz.getInterfaces()).contains(HttpController.class)) {
a.register((Class<? extends HttpController>) clazz);
}
}
<BUG>Wait wait = new Wait();
try (Disconnectable tcp = ninio.create(TcpSocketServer.builder().bind(new Address(Address.ANY, port))

.connecting(new WaitListenConnecting(wait)).listening(
HttpListening.builder().with(new SerialExecutor(ReadmeWithAnnotatedHttpService.class)).with(a.build()).build()))) {

wait.waitFor();</BUG>
System.out.println("http://" + new Address(Address.LOCALHOST, port) + "/a/echo?message=helloworld");

for (Class<?> clazz : ReadmeWithAnnotatedHttpService.class.getDeclaredClasses()) {
if (Arrays.asList(clazz.getInterfaces()).contains(HttpController.class)) {
a.register((Class<? extends HttpController>) clazz);
}
}
try (Listener tcp = ninio.create(TcpSocketServer.builder().bind(new Address(Address.ANY, port)))) {
tcp.listen(HttpListening.builder().with(new SerialExecutor(ReadmeWithAnnotatedHttpService.class)).with(a.build()).build());
System.out.println("http://" + new Address(Address.LOCALHOST, port) + "/a/echo?message=helloworld");
