语言

HttpOptions.GetAllowedMethods(IHttpResponse) 方法

定义

获取由响应标头命名的 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 标头的非 null HTTP 响应。

返回

由响应标头命名的 Allow HTTP 方法。

属性

例外

当 为 response时null引发。

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于