use of org.pdown.gui.http.EmbedHttpServer in project proxyee-down by monkeyWie.
the class DownApplication method initEmbedHttpServer.
private void initEmbedHttpServer() {
countDownLatch = new CountDownLatch(1);
new Thread(() -> {
EmbedHttpServer embedHttpServer = new EmbedHttpServer(API_PORT);
embedHttpServer.addController(new NativeController());
embedHttpServer.addController(new ApiController());
embedHttpServer.addController(new PacController());
embedHttpServer.start(future -> countDownLatch.countDown());
}).start();
}
Aggregations