Repository navigation
ZHttp 2.6
Key Features and Improvements:
-
Introduce Retry Mechanism for HTTP Requests
- Implement a configurable retry mechanism to enhance the robustness of HTTP requests.
- Allow users to specify retry count, delay between retries, HTTP status codes, and exceptions that trigger retries.
- Provide better handling of transient network issues, improving the reliability of API interactions.
-
Comprehensive Unit Tests for HTTP Requests
- Add extensive unit tests covering all HTTP request types (GET, POST, DELETE, PUT, PATCH, MULTIPART).
- Test scenarios include various response types:
- Void responses
- String responses
- Deserialized object responses
- List responses
- Map responses
- Complex responses
- Responses with parameters
- Ensure tests validate both successful and error scenarios to guarantee the reliability of the library.
- Simplify and modularize test code to improve maintainability and readability.
-
Enhance Code Readability and Maintainability
- Refactor request handling code to be more modular and easier to understand.
- Improve comments and documentation within the codebase, providing clarity on the new retry mechanism and its benefits.
- Optimize code structure to facilitate future enhancements and maintenance.
-
Ensure Backward Compatibility
- Maintain existing functionality and interfaces to avoid breaking changes for current users of the library.
- Add test cases to verify the integrity and compatibility of the new retry mechanism and unit tests with existing code.