Language

AndroidHttpClient.ExecuteAsync Method

Definition

Overloads

Name Description
ExecuteAsync(HttpHost, IHttpRequest, IResponseHandler, IHttpContext)

Runs the HTTP request and its response handler on a task.

ExecuteAsync(HttpHost, IHttpRequest, IHttpContext)

Runs the HTTP request on a task.

ExecuteAsync(HttpHost, IHttpRequest, IResponseHandler)

Runs the HTTP request and its response handler on a task.

ExecuteAsync(IHttpUriRequest, IResponseHandler, IHttpContext)

Runs the HTTP request and its response handler on a task.

ExecuteAsync(HttpHost, IHttpRequest)

Runs the HTTP request on a task.

ExecuteAsync(IHttpUriRequest, IHttpContext)

Runs the HTTP request on a task.

ExecuteAsync(IHttpUriRequest, IResponseHandler)

Runs the HTTP request and its response handler on a task.

ExecuteAsync(IHttpUriRequest)

Runs the HTTP request on a task.

ExecuteAsync(HttpHost, IHttpRequest, IResponseHandler, IHttpContext)

Runs the HTTP request and its response handler on a task.

public System.Threading.Tasks.Task<Java.Lang.Object?> ExecuteAsync(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler, Org.Apache.Http.Protocol.IHttpContext? context);
member this.ExecuteAsync : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> System.Threading.Tasks.Task<Java.Lang.Object>

Parameters

target
HttpHost

The target host, or null when the route can be determined without it.

request
IHttpRequest

The HTTP request to send.

responseHandler
IResponseHandler

The handler that processes the response.

context
IHttpContext

The context for this request, or null to use the default context.

Returns

A task that returns the result from the response handler.

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

ExecuteAsync(HttpHost, IHttpRequest, IHttpContext)

Runs the HTTP request on a task.

public System.Threading.Tasks.Task<Org.Apache.Http.IHttpResponse?> ExecuteAsync(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Protocol.IHttpContext? context);
member this.ExecuteAsync : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> System.Threading.Tasks.Task<Org.Apache.Http.IHttpResponse>

Parameters

target
HttpHost

The target host, or null when the route can be determined without it.

request
IHttpRequest

The HTTP request to send.

context
IHttpContext

The context for this request, or null to use the default context.

Returns

A task that returns the HTTP response.

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

ExecuteAsync(HttpHost, IHttpRequest, IResponseHandler)

Runs the HTTP request and its response handler on a task.

public System.Threading.Tasks.Task<Java.Lang.Object?> ExecuteAsync(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler);
member this.ExecuteAsync : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler -> System.Threading.Tasks.Task<Java.Lang.Object>

Parameters

target
HttpHost

The target host, or null when the route can be determined without it.

request
IHttpRequest

The HTTP request to send.

responseHandler
IResponseHandler

The handler that processes the response.

Returns

A task that returns the result from the response handler.

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

ExecuteAsync(IHttpUriRequest, IResponseHandler, IHttpContext)

Runs the HTTP request and its response handler on a task.

public System.Threading.Tasks.Task<Java.Lang.Object?> ExecuteAsync(Org.Apache.Http.Client.Methods.IHttpUriRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler, Org.Apache.Http.Protocol.IHttpContext? context);
member this.ExecuteAsync : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> System.Threading.Tasks.Task<Java.Lang.Object>

Parameters

request
IHttpUriRequest

The HTTP request to send.

responseHandler
IResponseHandler

The handler that processes the response.

context
IHttpContext

The context for this request, or null to use the default context.

Returns

A task that returns the result from the response handler.

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

ExecuteAsync(HttpHost, IHttpRequest)

Runs the HTTP request on a task.

public System.Threading.Tasks.Task<Org.Apache.Http.IHttpResponse?> ExecuteAsync(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request);
member this.ExecuteAsync : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest -> System.Threading.Tasks.Task<Org.Apache.Http.IHttpResponse>

Parameters

target
HttpHost

The target host, or null when the route can be determined without it.

request
IHttpRequest

The HTTP request to send.

Returns

A task that returns the HTTP response.

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

ExecuteAsync(IHttpUriRequest, IHttpContext)

Runs the HTTP request on a task.

public System.Threading.Tasks.Task<Org.Apache.Http.IHttpResponse?> ExecuteAsync(Org.Apache.Http.Client.Methods.IHttpUriRequest? request, Org.Apache.Http.Protocol.IHttpContext? context);
member this.ExecuteAsync : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Protocol.IHttpContext -> System.Threading.Tasks.Task<Org.Apache.Http.IHttpResponse>

Parameters

request
IHttpUriRequest

The HTTP request to send.

context
IHttpContext

The context for this request, or null to use the default context.

Returns

A task that returns the HTTP response.

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

ExecuteAsync(IHttpUriRequest, IResponseHandler)

Runs the HTTP request and its response handler on a task.

public System.Threading.Tasks.Task<Java.Lang.Object?> ExecuteAsync(Org.Apache.Http.Client.Methods.IHttpUriRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler);
member this.ExecuteAsync : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler -> System.Threading.Tasks.Task<Java.Lang.Object>

Parameters

request
IHttpUriRequest

The HTTP request to send.

responseHandler
IResponseHandler

The handler that processes the response.

Returns

A task that returns the result from the response handler.

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

ExecuteAsync(IHttpUriRequest)

Runs the HTTP request on a task.

public System.Threading.Tasks.Task<Org.Apache.Http.IHttpResponse?> ExecuteAsync(Org.Apache.Http.Client.Methods.IHttpUriRequest? request);
member this.ExecuteAsync : Org.Apache.Http.Client.Methods.IHttpUriRequest -> System.Threading.Tasks.Task<Org.Apache.Http.IHttpResponse>

Parameters

request
IHttpUriRequest

The HTTP request to send.

Returns

A task that returns the HTTP response.

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