語言

UrlResponseInfo.NegotiatedProtocol 屬性

定義

回傳與伺服器協商的協定(例如 'quic/1+spdy/3')。

public abstract string NegotiatedProtocol { [Android.Runtime.Register("getNegotiatedProtocol", "()Ljava/lang/String;", "GetGetNegotiatedProtocolHandler", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getNegotiatedProtocol", "()Ljava/lang/String;", "GetGetNegotiatedProtocolHandler", ApiSince=34)>]
member this.NegotiatedProtocol : string

屬性值

該協議與伺服器協商完成。 這個值不可能為零值。

屬性

備註

回傳與伺服器協商的協定(例如 'quic/1+spdy/3')。 若未協商協定、協定未知,或使用純 HTTP 或 HTTPS 時,則回傳空字串。

Android 參考資料。android.net.http.UrlResponseInfo.getNegotiatedProtocol

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於