Share via


AndroidHttpClient.Execute Method

Definition

Overloads

Execute(HttpHost, IHttpRequest, IResponseHandler, IHttpContext)
Execute(HttpHost, IHttpRequest, IHttpContext)

Executes a request to the target using the given context.

Execute(HttpHost, IHttpRequest, IResponseHandler)
Execute(IHttpUriRequest, IResponseHandler, IHttpContext)
Execute(HttpHost, IHttpRequest)

Executes a request to the target using the default context.

Execute(IHttpUriRequest, IHttpContext)

Executes a request using the given context.

Execute(IHttpUriRequest, IResponseHandler)
Execute(IHttpUriRequest)

Executes a request to the target using the given context.

Execute(HttpHost, IHttpRequest, IResponseHandler, IHttpContext)

[Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object? Execute (Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object
override this.Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object

Parameters

target
HttpHost
request
IHttpRequest
responseHandler
IResponseHandler
context
IHttpContext

Returns

Implements

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

Execute(HttpHost, IHttpRequest, IHttpContext)

Executes a request to the target using the given context.

[Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "")]
public Org.Apache.Http.IHttpResponse? Execute (Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "")>]
abstract member Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse
override this.Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse

Parameters

target
HttpHost

the target host for the request. Implementations may accept null if they can still determine a route, for example to a default target or by inspecting the request.

request
IHttpRequest

the request to execute

context
IHttpContext

the context to use for the execution, or null to use the default context

Returns

Implements

Attributes

Exceptions

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

Execute(HttpHost, IHttpRequest, IResponseHandler)

[Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object? Execute (Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler -> Java.Lang.Object
override this.Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler -> Java.Lang.Object

Parameters

target
HttpHost
request
IHttpRequest
responseHandler
IResponseHandler

Returns

Implements

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

Execute(IHttpUriRequest, IResponseHandler, IHttpContext)

[Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object? Execute (Org.Apache.Http.Client.Methods.IHttpUriRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object
override this.Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object

Parameters

request
IHttpUriRequest
responseHandler
IResponseHandler
context
IHttpContext

Returns

Implements

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

Execute(HttpHost, IHttpRequest)

Executes a request to the target using the default context.

[Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/HttpResponse;", "")]
public Org.Apache.Http.IHttpResponse? Execute (Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/HttpResponse;", "")>]
abstract member Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest -> Org.Apache.Http.IHttpResponse
override this.Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest -> Org.Apache.Http.IHttpResponse

Parameters

target
HttpHost

the target host for the request. Implementations may accept null if they can still determine a route, for example to a default target or by inspecting the request.

request
IHttpRequest

the request to execute

Returns

Implements

Attributes

Exceptions

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

Execute(IHttpUriRequest, IHttpContext)

Executes a request using the given context.

[Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "")]
public Org.Apache.Http.IHttpResponse? Execute (Org.Apache.Http.Client.Methods.IHttpUriRequest? request, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "")>]
abstract member Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse
override this.Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse

Parameters

request
IHttpUriRequest

the request to execute

context
IHttpContext

the context to use for the execution, or null to use the default context

Returns

Implements

Attributes

Exceptions

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

Execute(IHttpUriRequest, IResponseHandler)

[Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object? Execute (Org.Apache.Http.Client.Methods.IHttpUriRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler -> Java.Lang.Object
override this.Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler -> Java.Lang.Object

Parameters

request
IHttpUriRequest
responseHandler
IResponseHandler

Returns

Implements

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

Execute(IHttpUriRequest)

Executes a request to the target using the given context.

[Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;", "")]
public Org.Apache.Http.IHttpResponse? Execute (Org.Apache.Http.Client.Methods.IHttpUriRequest? request);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;", "")>]
abstract member Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest -> Org.Apache.Http.IHttpResponse
override this.Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest -> Org.Apache.Http.IHttpResponse

Parameters

request
IHttpUriRequest

the request to execute

Returns

Implements

Attributes

Exceptions

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