Interface IHttpClient
Interface for HTTP clients used to make requests to MercadoPago's API.
Namespace: MercadoPago.Http
Assembly: MercadoPago.dll
Syntax
public interface IHttpClient
Methods
| Edit this page View SourceSendAsync(MercadoPagoRequest, IRetryStrategy, CancellationToken)
Sends a HTTP request to MercadoPago's APIs.
Declaration
Task<MercadoPagoResponse> SendAsync(MercadoPagoRequest request, IRetryStrategy retryStrategy, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| MercadoPagoRequest | request | Request data. |
| IRetryStrategy | retryStrategy | Strategy to be used when it is necessary to retry the request. |
| CancellationToken | cancellationToken | Cancellation token to cancel operation. |
Returns
| Type | Description |
|---|---|
| Task<MercadoPagoResponse> | A Task with response data. |