国庆快乐 ^ ^ #59

This commit is contained in:
QAIU
2024-09-30 17:38:36 +08:00
parent 0e15d9f309
commit aabfcd8c8b
9 changed files with 259 additions and 4 deletions
@@ -6,6 +6,8 @@ import io.vertx.core.Handler;
import io.vertx.core.Promise;
import io.vertx.core.json.DecodeException;
import io.vertx.core.json.JsonObject;
import io.vertx.core.net.ProxyOptions;
import io.vertx.core.net.ProxyType;
import io.vertx.ext.web.client.HttpResponse;
import io.vertx.ext.web.client.WebClient;
import io.vertx.ext.web.client.WebClientOptions;
@@ -38,6 +40,11 @@ public abstract class PanBase {
protected WebClient clientNoRedirects = WebClient.create(WebClientVertxInit.get(),
new WebClientOptions().setFollowRedirects(false));
// test proxy
protected WebClient proxyClient = WebClient.create(WebClientVertxInit.get(), new WebClientOptions()
.setUserAgentEnabled(false).setFollowRedirects(false)
.setProxyOptions(new ProxyOptions().setHost("101.251.204.174").setPort(8080).setType(ProxyType.HTTP)));
protected ShareLinkInfo shareLinkInfo;
/**