Package com.hw.openai.utils
Class ProxyUtils
java.lang.Object
com.hw.openai.utils.ProxyUtils
A utility class for creating HTTP proxies.
- Author:
- HamaWhite
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ProxyUtils
public ProxyUtils()
-
-
Method Details
-
http
Creates an HTTP proxy object based on the provided address.- Parameters:
address
- the address of the proxy server in the format http://host:portusername
- the username for proxy authentication (optional)password
- the password for proxy authentication (optional)- Returns:
- the
Proxy
object representing the HTTP proxy server
-