Undertow: How to control choosing host depends on request body content?
问题 I try to implement my own proxy like this: LoadBalancingProxyClient loadBalancer = new LoadBalancingProxyClient() .addHost(new URI("http://localhost:8080")) .addHost(new URI("http://localhost:7777")) .setConnectionsPerThread(20); Undertow reverseProxy = Undertow.builder() .addHttpListener(8081, "localhost") .setIoThreads(1) .setHandler(ProxyHandler.builder().setProxyClient(loadBalancer).setMaxRequestTime(30000).build()) .build(); reverseProxy.start(); I want to have control over choosing