IHttpClientExtensions.ExecuteAsync Method

Definition

Overloads

Name Description
ExecuteAsync(IHttpClient, IHttpUriRequest)

Executes a request using the default context.

ExecuteAsync(IHttpClient, IHttpUriRequest, IResponseHandler)

Executes a request using the default context and processes the response using the given response handler.

ExecuteAsync(IHttpClient, IHttpUriRequest, IHttpContext)

Executes a request using the given context.

ExecuteAsync(IHttpClient, HttpHost, IHttpRequest)

Executes a request to the target using the default context.

ExecuteAsync(IHttpClient, IHttpUriRequest, IResponseHandler, IHttpContext)

Executes a request using the given context and processes the response using the given response handler.

ExecuteAsync(IHttpClient, HttpHost, IHttpRequest, IResponseHandler)

Executes a request to the target using the default context and processes the response using the given response handler.

ExecuteAsync(IHttpClient, HttpHost, IHttpRequest, IHttpContext)

Executes a request to the target using the given context.

ExecuteAsync(IHttpClient, HttpHost, IHttpRequest, IResponseHandler, IHttpContext)

Executes a request to the target using the given context and processes the response using the given response handler.

ExecuteAsync(IHttpClient, IHttpUriRequest)

Executes a request using the default context.

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

Parameters

self
IHttpClient

The HTTP client.

request
IHttpUriRequest

The request to execute.

Returns

A task whose result is the final response to the request. It is never an intermediate response with a 1xx status code. Whether redirects or authentication challenges are returned or handled automatically depends on the client implementation and configuration.

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(IHttpClient, IHttpUriRequest, IResponseHandler)

Executes a request using the default context and processes the response using the given response handler.

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

Parameters

self
IHttpClient

The HTTP client.

request
IHttpUriRequest

The request to execute.

responseHandler
IResponseHandler

The response handler.

Returns

A task whose result is the response object generated by 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(IHttpClient, IHttpUriRequest, IHttpContext)

Executes a request using the given context.

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

Parameters

self
IHttpClient

The HTTP client.

request
IHttpUriRequest

The request to execute.

context
IHttpContext

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

Returns

A task whose result is the final response to the request. It is never an intermediate response with a 1xx status code. Whether redirects or authentication challenges are returned or handled automatically depends on the client implementation and configuration.

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(IHttpClient, HttpHost, IHttpRequest)

Executes a request to the target using the default context.

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

Parameters

self
IHttpClient

The HTTP client.

target
HttpHost

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

request
IHttpRequest

The request to execute.

Returns

A task whose result is the final response to the request. It is never an intermediate response with a 1xx status code. Whether redirects or authentication challenges are returned or handled automatically depends on the client implementation and configuration.

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(IHttpClient, IHttpUriRequest, IResponseHandler, IHttpContext)

Executes a request using the given context and processes the response using the given response handler.

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

Parameters

self
IHttpClient

The HTTP client.

request
IHttpUriRequest

The request to execute.

responseHandler
IResponseHandler

The response handler.

context
IHttpContext

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

Returns

A task whose result is the response object generated by 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(IHttpClient, HttpHost, IHttpRequest, IResponseHandler)

Executes a request to the target using the default context and processes the response using the given response handler.

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

Parameters

self
IHttpClient

The HTTP client.

target
HttpHost

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

request
IHttpRequest

The request to execute.

responseHandler
IResponseHandler

The response handler.

Returns

A task whose result is the response object generated by 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(IHttpClient, HttpHost, IHttpRequest, IHttpContext)

Executes a request to the target using the given context.

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

Parameters

self
IHttpClient

The HTTP client.

target
HttpHost

The target host for the request. Implementations may accept null when 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

A task whose result is the final response to the request. It is never an intermediate response with a 1xx status code. Whether redirects or authentication challenges are returned or handled automatically depends on the client implementation and configuration.

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(IHttpClient, HttpHost, IHttpRequest, IResponseHandler, IHttpContext)

Executes a request to the target using the given context and processes the response using the given response handler.

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

self
IHttpClient

The HTTP client.

target
HttpHost

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

request
IHttpRequest

The request to execute.

responseHandler
IResponseHandler

The response handler.

context
IHttpContext

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

Returns

A task whose result is the response object generated by 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