gio 0.2.0
gio: ^0.2.0 copied to clipboard
A powerful http request library.
0.2.0 #
New Features #
- File Transfer Support: Added comprehensive upload and download capabilities
uploadFile()
- Upload files with multipart/form-data format and progress trackinguploadData()
- Upload raw data as request body with progress trackinguploadFromStream()
- Upload from stream for large filesdownloadFile()
- Download files to disk with progress trackingdownloadBytes()
- Download content to memory with size limitsdownloadWithChunkCallback()
- Process download chunks in real-timedownloadToSink()
- Download to custom sink
- Background JSON Processing: Added support for background JSON encoding to prevent UI blocking
- Global
parallelJson
configuration inGioOption
for request body JSON encoding jsonBody
parameter for clean JSON object handlingGioJsonCodec
with configurable idle timeout for background isolate managementtoJsonAs<T>()
method for parsing JSON responses to typed objects in background isolates
- Global
- Enhanced Progress Tracking:
TransferProgress
class with accurate percentage calculation (0.5% threshold)- Optimized progress callbacks to prevent duplicate reports
- High-precision percentage display (2 decimal places)
Improvements #
- Content-Type Standardization: Automatic
application/json
header forjsonBody
requests
Breaking Changes #
- Recommended to use
jsonBody
parameter instead of manualjsonEncode()
for JSON requests
0.1.0 #
- Upgrade dart to the minimum supported version 3.4
- Remove the http protocol implementation and use package:http
0.0.4 #
- Add tutorial
- Fix interceptor bug
- Request to add queryParameters parameter option
0.0.3 #
- lower the version number
0.0.2 #
- Add support for setting certificate private key.
0.0.1 #
- Initial version.