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 标头的非 null HTTP 响应。
返回
由响应标头命名的 Allow HTTP 方法。
- 属性
例外
当 为 response时null引发。
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。