Share via


IRedirectHandler.IsRedirectRequested(IHttpResponse, IHttpContext) Method

Definition

Determines if a request should be redirected to a new location given the response from the target server.

[Android.Runtime.Register("isRedirectRequested", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z", "GetIsRedirectRequested_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.Client.IRedirectHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool IsRedirectRequested (Org.Apache.Http.IHttpResponse? response, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("isRedirectRequested", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z", "GetIsRedirectRequested_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.Client.IRedirectHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member IsRedirectRequested : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> bool

Parameters

response
IHttpResponse

the response received from the target server

context
IHttpContext

the context for the request execution

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