utility_flutter 0.0.2-dev.2
utility_flutter: ^0.0.2-dev.2 copied to clipboard
A utility package for common HTTP operations with built-in error handling.
HTTP Operations Repository #
This package provides a comprehensive utility to handle common HTTP operations with ease. Built around the http package, it integrates seamlessly with Flutter and Dart applications, offering features like setting default headers, configuring request timeouts, and delivering standardized error responses.
🌟 Features #
- Simplified HTTP Requests: Perform GET, POST, PUT, and DELETE operations with just a few lines of code.
- Consistent Base URL: Define a base URL once and forget about repeating it for every request.
- Default Headers: Easily set default headers that automatically accompany every HTTP request.
- Timeouts: A default timeout duration ensures your requests don't hang indefinitely.
- Standardized Errors: Understand and handle HTTP errors better with standardized error responses.
🚀 Getting Started #
Prerequisites #
To use this package:
- Ensure you have Flutter and Dart SDK installed.
- Add the
httppackage to yourpubspec.yamlas this package depends on it.
Installation #
- Add the package to your
pubspec.yaml:
dependencies:
utility_package: <latest_version>