Module bus.http

Class HttpProxy

java.lang.Object
org.miaixz.bus.http.plugin.httpx.HttpProxy

public class HttpProxy extends Object
HTTP代理配置
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • hostAddress

      public final String hostAddress
    • port

      public final int port
    • user

      public final String user
    • password

      public final String password
    • type

      public final Proxy.Type type
  • Constructor Details

    • HttpProxy

      public HttpProxy(String hostAddress, int port, String user, String password, Proxy.Type type)
      Parameters:
      hostAddress - 服务器域名或IP,比如miaixz.org, 192.168.1.1
      port - 端口
      user - 用户名,无则填null
      password - 用户密码,无则填null
      type - 代理类型
    • HttpProxy

      public HttpProxy(String hostAddress, int port)
  • Method Details