ts_api_handler
library
Classes
APICacheDBModel
ApiCacheHelper
A class responsible for managing caching of API data.
ApiLogOptions
Controls what the console logger prints for each request.
ApiServices
A typed HTTP client wrapping Dio. All methods return Either<Failure, Response> —
use .fold(onLeft, onRight) to handle errors and successes without exceptions.
CancelToken
Controls cancellation of Dio's requests.
Response <T >
The Response class contains the payload (could be transformed)
that respond from the request, and other information of the response.
Exceptions / Errors
Failure
Represents a failure from ApiServices , carrying the error type, HTTP/internal
code, and a human-readable message.