HttpEngine.Builder.AddQuicHint(String, Int32, Int32) 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.
Adds hint that host supports QUIC.
[Android.Runtime.Register("addQuicHint", "(Ljava/lang/String;II)Landroid/net/http/HttpEngine$Builder;", "GetAddQuicHint_Ljava_lang_String_IIHandler", ApiSince=34)]
public virtual Android.Net.Http.HttpEngine.Builder AddQuicHint(string host, int port, int alternatePort);
[<Android.Runtime.Register("addQuicHint", "(Ljava/lang/String;II)Landroid/net/http/HttpEngine$Builder;", "GetAddQuicHint_Ljava_lang_String_IIHandler", ApiSince=34)>]
abstract member AddQuicHint : string * int * int -> Android.Net.Http.HttpEngine.Builder
override this.AddQuicHint : string * int * int -> Android.Net.Http.HttpEngine.Builder
Parameters
- host
- String
hostname of the server that supports QUIC. This value cannot be null.
- port
- Int32
port of the server that supports QUIC.
- alternatePort
- Int32
alternate port to use for QUIC.
Returns
the builder to facilitate chaining. This value cannot be null.
- Attributes
Remarks
Adds hint that host supports QUIC. Note that enableHttpCache (HTTP_CACHE_DISK) is needed to take advantage of 0-RTT connection establishment between sessions.
Android reference for android.net.http.HttpEngine.Builder.addQuicHint.
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.