Class ProxyUtils

java.lang.Object
com.hw.openai.utils.ProxyUtils

public class ProxyUtils extends Object
A utility class for creating HTTP proxies.
Author:
HamaWhite
  • Constructor Details

    • ProxyUtils

      public ProxyUtils()
  • Method Details

    • http

      public static Proxy http(String address, String username, String password)
      Creates an HTTP proxy object based on the provided address.
      Parameters:
      address - the address of the proxy server in the format http://host:port
      username - the username for proxy authentication (optional)
      password - the password for proxy authentication (optional)
      Returns:
      the Proxy object representing the HTTP proxy server