QuicOptions.Builder.SetHandshakeUserAgent(String) 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 the user agent to be used outside of HTTP requests (for example for QUIC handshakes).
[Android.Runtime.Register("setHandshakeUserAgent", "(Ljava/lang/String;)Landroid/net/http/QuicOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.QuicOptions.Builder SetHandshakeUserAgent(string handshakeUserAgent);
[<Android.Runtime.Register("setHandshakeUserAgent", "(Ljava/lang/String;)Landroid/net/http/QuicOptions$Builder;", "", ApiSince=34)>]
member this.SetHandshakeUserAgent : string -> Android.Net.Http.QuicOptions.Builder
Parameters
- handshakeUserAgent
- String
Returns
the builder for chaining. This value cannot be null.
- Attributes
Remarks
Sets the user agent to be used outside of HTTP requests (for example for QUIC handshakes).
To set the default user agent for HTTP requests, use HttpEngine.Builder.setUserAgent(String) instead.
Android reference for android.net.http.QuicOptions.Builder.setHandshakeUserAgent.
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.