VB10 / vexana

Vexana is network manager project with dio.
https://pub.dev/packages/vexana
MIT License
147 stars 39 forks source link

Feature/improve network model #101

Closed mysCod3r closed 1 month ago

mysCod3r commented 1 month ago

Improved Network Handling and Added New Method sendRequest

Description

This PR introduces significant improvements to the Vexana package, focusing on enhancing network handling and ensuring backward compatibility. The key changes include:

1. New Method sendRequest

Reason: The current send method, while functional, lacks the flexibility and robustness needed for more complex HTTP requests and responses.

2. Deprecation of send Method

Reason: To ensure backward compatibility while encouraging users to migrate to the new and improved method.

3. NetworkResult Improvements

Reason: Enhance error handling and reduce unnecessary null checks, making the codebase cleaner and more maintainable.

4. Additional Methods

Reason: Provide utility methods to streamline response handling and error management, improving overall code quality and maintainability.

5. Documentation

Reason: Ensure that users have clear guidance on how to use the new and modified methods.

6. Unit Tests

Reason: Ensure code reliability and functionality by thoroughly testing new and modified methods.

Changes

Testing

Migration Guide

Users are encouraged to start using the sendRequest method. The send method is deprecated but still available for use. It will be removed in future versions, so migrating to sendRequest is recommended.

Closing

These changes aim to enhance the functionality and maintainability of the Vexana package. Feedback and suggestions are welcome to further improve the package.

Thank you for considering this PR!