語言

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於