postman_dio

Creator: coderz1093

Last updated:

0 purchases

postman_dio Image
postman_dio Images
Add to Cart

Description:

postman dio

postman_dio by zfx.com #

Logger Interceptor for Dio with export to "Postman Collection v2.1".json
Import #
postman_dio: 1.0.4
copied to clipboard
import 'package:postman_dio/postman_dio.dart';
copied to clipboard
Change export collection #
PostmanDioLogger.changeNameCollection('MyAwesomeApp ${DateTime.now().toUtc()}');
copied to clipboard
Example use #
_dio.interceptors.add(
PostmanDioLogger(),
);
copied to clipboard
Example use for slow requests #
_dio.interceptors.add(
PostmanDioLogger(maxMilliseconds: 1000),
);
copied to clipboard
Example use with Simple logger #
_dio.interceptors.add(
PostmanDioLoggerSimple(
logPrint: (Object object) => l.log(
object.toString(),
name: 'PostmanDioLoggerSimple',
),
),
);
copied to clipboard
Export #
final exportedCollection = await PostmanDioLogger.export();
copied to clipboard
Todo: #

check not json body
add cookie

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.