HttpRequestExecutor.CanResponseHaveBody(IHttpRequest, IHttpResponse) Method

Definition

Decide whether a response comes with an entity.

[Android.Runtime.Register("canResponseHaveBody", "(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpResponse;)Z", "GetCanResponseHaveBody_Lorg_apache_http_HttpRequest_Lorg_apache_http_HttpResponse_Handler")]
protected virtual bool CanResponseHaveBody (Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.IHttpResponse? response);
[<Android.Runtime.Register("canResponseHaveBody", "(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpResponse;)Z", "GetCanResponseHaveBody_Lorg_apache_http_HttpRequest_Lorg_apache_http_HttpResponse_Handler")>]
abstract member CanResponseHaveBody : Org.Apache.Http.IHttpRequest * Org.Apache.Http.IHttpResponse -> bool
override this.CanResponseHaveBody : Org.Apache.Http.IHttpRequest * Org.Apache.Http.IHttpResponse -> bool

Parameters

request
IHttpRequest

the request, to obtain the executed method

response
IHttpResponse

the response, to obtain the status code

Returns

Attributes

Remarks

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.

Applies to