Dil

HttpEngine.Builder.SetDnsOptions(DnsOptions) Method

Definition

Configures the behavior of hostname lookup.

[Android.Runtime.Register("setDnsOptions", "(Landroid/net/http/DnsOptions;)Landroid/net/http/HttpEngine$Builder;", "GetSetDnsOptions_Landroid_net_http_DnsOptions_Handler", ApiSince=34)]
public virtual Android.Net.Http.HttpEngine.Builder SetDnsOptions(Android.Net.Http.DnsOptions options);
[<Android.Runtime.Register("setDnsOptions", "(Landroid/net/http/DnsOptions;)Landroid/net/http/HttpEngine$Builder;", "GetSetDnsOptions_Landroid_net_http_DnsOptions_Handler", ApiSince=34)>]
abstract member SetDnsOptions : Android.Net.Http.DnsOptions -> Android.Net.Http.HttpEngine.Builder
override this.SetDnsOptions : Android.Net.Http.DnsOptions -> Android.Net.Http.HttpEngine.Builder

Parameters

options
DnsOptions

Returns

the builder to facilitate chaining. This value cannot be null.

Attributes

Remarks

Configures the behavior of hostname lookup. For more details, see documentation of DnsOptions and the individual methods of DnsOptions.Builder.

Only relevant if setEnableQuic(boolean) is enabled.

Android reference for android.net.http.HttpEngine.Builder.setDnsOptions.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to