0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.