public class BeforeSendProxyHeadersParams extends RequestParams
NetworkDelegate.onBeforeSendProxyHeaders(BeforeSendProxyHeadersParams)
method.
Constructor and Description |
---|
BeforeSendProxyHeadersParams(long requestId, java.lang.String url, java.lang.String method, Browser browser, HttpHeaders headers, HttpHeadersEx headersEx, boolean didBypassProxy, boolean didUsePacScript, ProxyType proxyType, HostPortPair hostPortPair) |
Modifier and Type | Method and Description |
---|---|
boolean |
didBypassProxy()
Returns
如果当前代理连接由于代理绕过规则而使用直接连接,则返回true。 true if the current proxy connection is using a direct connection due to proxy bypass rules.
|
boolean |
didUsePacScript()
Returns
如果当前代理连接已使用PAC脚本创建,则返回true。 true if the current proxy connection has been created using a PAC script.
|
HttpHeaders |
getHeaders()
Deprecated.
已过时。使用getHeadersEx()代替。
use
getHeadersEx() instead.
|
HttpHeadersEx |
getHeadersEx()
Returns HTTP headers for the current request.
返回当前请求的HTTP标头。 |
HostPortPair |
getProxyServerAddress()
Returns address of the current proxy server.
返回当前代理服务器的地址。 |
ProxyType |
getProxyType()
Returns type of the current proxy connection.
返回当前代理连接的类型。 |
getBrowser, getMethod, getRequestId, getURL
public BeforeSendProxyHeadersParams(long requestId, java.lang.String url, java.lang.String method, Browser browser, HttpHeaders headers, HttpHeadersEx headersEx, boolean didBypassProxy, boolean didUsePacScript, ProxyType proxyType, HostPortPair hostPortPair)
@Deprecated public HttpHeaders getHeaders()
getHeadersEx()
instead.
public HttpHeadersEx getHeadersEx()
public boolean didBypassProxy()
true
if the current proxy connection is using a direct connection due to proxy bypass rules.
true
if the current proxy connection is using a direct connection due to proxy bypass rules.
如果当前代理连接由于代理绕过规则而正在使用直接连接。
public boolean didUsePacScript()
true
if the current proxy connection has been created using a PAC script.
true
if the current proxy connection has been created using a PAC script.
如果当前代理连接是使用PAC脚本创建的。
public ProxyType getProxyType()
public HostPortPair getProxyServerAddress()