HttpEngine.Builder.SetEnableBrotli(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets whether Brotli compression is enabled.
[Android.Runtime.Register("setEnableBrotli", "(Z)Landroid/net/http/HttpEngine$Builder;", "GetSetEnableBrotli_ZHandler", ApiSince=34)]
public virtual Android.Net.Http.HttpEngine.Builder SetEnableBrotli(bool value);
[<Android.Runtime.Register("setEnableBrotli", "(Z)Landroid/net/http/HttpEngine$Builder;", "GetSetEnableBrotli_ZHandler", ApiSince=34)>]
abstract member SetEnableBrotli : bool -> Android.Net.Http.HttpEngine.Builder
override this.SetEnableBrotli : bool -> Android.Net.Http.HttpEngine.Builder
Parameters
- value
- Boolean
true to enable Brotli, false to disable.
Returns
the builder to facilitate chaining. This value cannot be null.
- Attributes
Remarks
Sets whether Brotli compression is enabled. If enabled, Brotli will be advertised in Accept-Encoding request headers. Defaults to disabled.
Android reference for android.net.http.HttpEngine.Builder.setEnableBrotli.
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.