curl_logger_dio_interceptor
a flutter curl-command generator for dio.
easily test your flutter-made requests in your favorite terminal or even in postman or insomnia.
why?
sometimes you want to replay the http requests made in your app, or you want to share it with your beloved backend developer. or you just love curl.
use your app as you want, and when the broken-request comes, look at your terminal, copy and paste it, and enjoy replaying it easily!
features
- simple get/post/delete/put requests logging
- with data when available
- postman-ready
getting started
_dio = dio();
_dio.interceptors.add(curlloggerdiointerceptor());
depending on your needs, you can also pass printonsuccess: true
to print all requests instead of only errored ones.
Comments are closed.