HttpOptions.GetAllowedMethods(IHttpResponse) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得由回應 Allow 標頭命名的 HTTP 方法。
[Android.Runtime.Register("getAllowedMethods", "(Lorg/apache/http/HttpResponse;)Ljava/util/Set;", "GetGetAllowedMethods_Lorg_apache_http_HttpResponse_Handler")]
public virtual System.Collections.Generic.ICollection<string>? GetAllowedMethods(Org.Apache.Http.IHttpResponse? response);
[<Android.Runtime.Register("getAllowedMethods", "(Lorg/apache/http/HttpResponse;)Ljava/util/Set;", "GetGetAllowedMethods_Lorg_apache_http_HttpResponse_Handler")>]
abstract member GetAllowedMethods : Org.Apache.Http.IHttpResponse -> System.Collections.Generic.ICollection<string>
override this.GetAllowedMethods : Org.Apache.Http.IHttpResponse -> System.Collections.Generic.ICollection<string>
參數
- response
- IHttpResponse
包含 Allow 標頭的非空 HTTP 回應。
傳回
HTTP 方法則以回應的 Allow 標頭命名。
- 屬性
例外狀況
當 是 response時拋出 null 。
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。