micro_core_http library

Classes

AuthorizationInterceptor
A dio.Interceptor that adds the authorization tokens on the request.
AuthorizationOptions
Class that handles the http request's authorization.
HttpClient
Class that represents the HTTP methods.
HttpClientImpl
Class that implements HttpClient using dio.Dio.
HttpResponse<T>
Class that represents the response of a HTTP's request.
LoggerInterceptor
A dio.Interceptor that logs the exceptions/erros, requests, and responses.
RefreshInterceptor
A dio.Interceptor that refreshes the authentication tokens if the request fails with the RefreshOptions.statusCodeToRefresh.
RefreshOptions
Class of configuration options to refresh the authentication tokens.
RetryInterceptor
A dio.Interceptor that retries the requests that have failed given a condition.
RetryOptions
Class of configuration options to retry a failed request given a condition.
TimeoutOptions
Class of configuration options to throw a timeout exception during a HTTP request.

Enums

AuthorizationTypeEnum
The type of authorization to add on the request.

Extensions

RequestAttemptExtension on RequestOptions
Extension to track the number of request attempts on dio.RequestOptions.

Exceptions / Errors

HttpException
Class that represents an HTTP exception.