pop_network library

Classes

ApiManager
Headers
The headers class for requests and responses.
IApiManager
IApiManager is an abstract class that extends DioForNative and adds support for mocking requests.
ICacheRequestData
ICacheRequestData is a contract with the basics methods for managing the cache storage for the requests data.
MemoryCacheRequestData
MemoryCacheRequestData is a class that implements ICacheRequestData and manages the cache storage for the requests data in memory using a Map.
MockReplyParams
MockReplyParams is used to configure a mock request reply.
Options
Every request can pass an Options object which will be merged with Dio.options
PopCacheInterceptor
PopCacheInterceptor is an interceptor that adds support for caching requests with a specified cacheExpiresIn duration. The cache storage could be managed by any class that implements the ICacheRequestData interface.
PopErrorInterceptor
PopErrorInterceptor is used to resolve with a Response even when an DioException occurs. The response contains the same data from DioException.response or it's own properties when the Response is null.
PopNetworkLogInterceptor
PopNetworkLogInterceptor is used to print logs during network requests.
RequestCacheKey
RequestCacheKey is a class that represents the key of a request in the cache.
RequestOptions
The internal request option class that is the eventual result after BaseOptions and Options are composed.
Response<T>
The Response class contains the payload (could be transformed) that respond from the request, and other information of the response.

Enums

HttpStatusEnum
HttpStatusEnum is an enum for HTTP status codes and messages.
ResponseType
Indicates which transformation should be applied to the response data.

Extensions

ResponseExtension on Response