Språk

HttpEngine.Builder.SetEnableHttp2(Boolean) Method

Definition

Sets whether HTTP/2 protocol is enabled.

[Android.Runtime.Register("setEnableHttp2", "(Z)Landroid/net/http/HttpEngine$Builder;", "GetSetEnableHttp2_ZHandler", ApiSince=34)]
public virtual Android.Net.Http.HttpEngine.Builder SetEnableHttp2(bool value);
[<Android.Runtime.Register("setEnableHttp2", "(Z)Landroid/net/http/HttpEngine$Builder;", "GetSetEnableHttp2_ZHandler", ApiSince=34)>]
abstract member SetEnableHttp2 : bool -> Android.Net.Http.HttpEngine.Builder
override this.SetEnableHttp2 : bool -> Android.Net.Http.HttpEngine.Builder

Parameters

value
Boolean

true to enable HTTP/2, false to disable.

Returns

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

Attributes

Remarks

Sets whether HTTP/2 protocol is enabled. Defaults to enabled.

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

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