dio_shaker_interceptor 0.2.0
dio_shaker_interceptor: ^0.2.0 copied to clipboard
Shake to debug! dio_shaker_interceptor shows network request details. Inspect HTTP data easily with this Dio interceptor.
Changelog #
0.2.0 #
- Fix: Stable request/response pairing via id in
RequestOptions.extra(no more collisions when parallel requests share the same URL). - Fix: Bounded in-memory history with
CurlLogs.maxItems(default 200); oldest entries are dropped first. - Fix:
markClosed()and reset afterNavigator.popso shake can open the inspector again after closing it. - Feature: POSIX-safe escaping for cURL bodies and headers; sensitive header redaction (
Authorization,Cookie, etc.) on copy/share/download; Copy curl (raw, no redact) menu item behind a confirmation dialog. - Feature:
CurlModel.id, estimatedrequestSize/responseSize;Utils.estimateSize,Utils.redactedHeadersMap;getCurlModelByUriis@Deprecated. - Chore: Additional exports in
dio_shaker_interceptor.dart(CurlLogs,Utils,CurlModel, constants); unit tests for utils, logger, and interceptor.
0.1.2 #
Chore: dependency updates.
- Updated
dio,flutter_bloc,equatable,collection,get_it,sensors_plus,share_plus, andflutter_lints(package and example app) to the latest mutually compatible releases on pub.dev. share_plusremains on 12.x while the Dart SDK constraint stays below 3.10 (share_plus 13.x requires SDK >=3.10.0).
0.1.1 #
Minor Update
- UI Enhancement: Improved the visual presentation of
CurlCardby adding spacing between elements and displaying the HTTP method alongside the path. - Feature: Added a duration display to
CurlCard, showing the time elapsed between request initiation and response. - UX Improvement: Implemented a
GestureDetectorinListCurlBodyto dismiss the keyboard when tapping outside the search field. - Update: Updated the sharing mechanism in
ActionButtonto useSharePlusfor better compatibility and functionality. - UI Enhancement: Formatted the body display in
CurlDetailScreenusingJsonEncoderfor improved readability. - UI Enhancement: Adjusted padding and margins for better visual consistency.
0.1.0 #
Major Update
- Chore: Update share_plus 10.1.4 to 11.0.0
- Chore: Update collection 1.18.0 to 1.19.0
- Chore: Update get_it 8.0.0 to 8.0.3
- Chore: Update dio 5.5.0+1 to 5.8.0+1
- Chore: Update equatable 2.0.5 to 2.0.7
- Chore: Update flutter_bloc 8.1.6 to 9.1.0
Dependencies #
- flutter_bloc: ^9.1.0
- dio: ^5.8.0+1
- get_it: ^8.0.3
- sensors_plus: ^6.1.1
- share_plus: ^11.0.0
- path_provider: ^2.1.5
0.0.2 #
Minor Update
- Feature: Added a search bar to the list of API requests, allowing users to filter requests by URL, method, or status code.
- Fix: Fixed an issue where the inspector UI would sometimes not open correctly on certain devices.
- Fix: Fixed some small issues in the clear function that could lead to unexpected behavior.
- Fix: Fixed an issue in the export and share functions that could cause crashes with large data sets.
0.0.1 #
Initial Release
- Feature: Implemented shake detection to trigger the network inspector UI.
- Feature: Captures and displays detailed information for Dio HTTP requests and responses.
- Request Headers
- Request Body
- Response Headers
- Response Body
- Status Code
- Request Method
- Request URL
- Feature: Added a user-friendly UI for viewing network data.
- Feature: Clear list button
- Feature: Export file json
- Feature: Share json