Overview of Net features and capabilities
masterNet is a non-intrusive Android network request library built on top of OkHttp and Kotlin Coroutines. It is designed to be compatible with all OkHttp APIs while providing high-level abstractions for common Android networking tasks.
Key Capabilities:
- Concurrency Management: Supports Concurrent, Serial, Queue, and Synchronous request modes. Includes built-in support for returning the fastest result from concurrent requests.
- Lifecycle Awareness: Automatic request cancellation based on lifecycle and ViewModel support.
- Data Handling: Generic type support for network returns and converters for various data formats (JSON, Protobuf, etc.).
- UI Integration: Automatic handling of Pull-to-Refresh, Load-More, Pagination, Loading Dialogs, and Toast error messages.
- Advanced Networking: Support for HTTPS configuration, Cookie persistence, timed/time-limited requests, and complex caching strategies (Cache-then-Network, LRU, etc.).
- Monitoring: Detailed upload/download progress monitoring (speed, time remaining, etc.).