Interface IRestClient
Definition
- Assembly:
- Tizen.AIAvatar.dll
Interface for making REST API calls, providing functionality to execute HTTP requests and receive responses.
public interface IRestClient : IDisposable
Methods
View SourceExecuteAsync(RestRequest)
Executes a REST request asynchronously and returns the response from the server.
Declaration
Task<RestResponse> ExecuteAsync(RestRequest request)
Parameters
| Type | Name | Description |
|---|---|---|
| RestRequest | request | The REST request to execute, containing information such as endpoint, headers, and parameters. |
Returns
| Type | Description |
|---|---|
| Task<><RestResponse> | A task representing the asynchronous operation, which returns the REST response containing status, content, and any errors. |