类 HttpProxy
java.lang.Object
java.net.Proxy
io.github.wooenrico.http.common.HttpProxy
HttpProxy Object
-
嵌套类概要
从类继承的嵌套类/接口 java.net.Proxy
Proxy.Type
-
字段概要
字段 -
构造器概要
构造器构造器说明HttpProxy
(Proxy.Type type, SocketAddress sa) Creates an entry representing a PROXY connection.HttpProxy
(Proxy.Type type, SocketAddress sa, String username, String password) Creates an entry representing a PROXY connection. -
方法概要
-
字段详细资料
-
Proxy_Authorization_Header_Name
Proxy-Authorization header name- 另请参阅:
-
-
构造器详细资料
-
HttpProxy
Creates an entry representing a PROXY connection. Certain combinations are illegal. For instance, for types Http, and Socks, a SocketAddress must be provided.Use the
Proxy.NO_PROXY
constant for representing a direct connection.- 参数:
type
- theType
of the proxysa
- theSocketAddress
for that proxy- 抛出:
IllegalArgumentException
- when the type and the address are incompatible
-
HttpProxy
Creates an entry representing a PROXY connection.- 参数:
type
- theType
of the proxysa
- theSocketAddress
for that proxyusername
- the usernamepassword
- the password
-
-
方法详细资料
-
getBasicAuthorization
proxy auth header- 返回:
- header value of Proxy-Authorization
-