语言

ProxyOptions.AllProxiesFailedBehaviorAllowDirect 字段

定义

注意

This constant will be removed in the future version. Use Android.Net.Http.AllProxiesFailedBehavior enum directly instead of this field.

允许直接的、非代理的流量。

[Android.Runtime.Register("ALL_PROXIES_FAILED_BEHAVIOR_ALLOW_DIRECT", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Net.Http.AllProxiesFailedBehavior enum directly instead of this field.", true)]
public const Android.Net.Http.AllProxiesFailedBehavior AllProxiesFailedBehaviorAllowDirect = 1;
[<Android.Runtime.Register("ALL_PROXIES_FAILED_BEHAVIOR_ALLOW_DIRECT", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.Http.AllProxiesFailedBehavior enum directly instead of this field.", true)>]
val mutable AllProxiesFailedBehaviorAllowDirect : Android.Net.Http.AllProxiesFailedBehavior

字段值

Value = 1
特性

注解

允许直接的、非代理的流量。

这定义了失败打开行为:如果 ProxyOptions 中的所有代理都失败,HttpEngine 将回退到非代理连接。

Android 参考。android.net.http.ProxyOptions.ALL_PROXIES_FAILED_BEHAVIOR_ALLOW_DIRECT

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于