# curl_logger_dio_interceptor 0.0.1

A Flutter curl-command generator for Dio.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'curl_logger_dio_interceptor:0.0.1'
```
Published: 2021-11-03T17:59:00.599807Z
Expected archive SHA-256: 659de275f710928803cb658075d5dc819e9458a53666bc1d4114e32c0a9d8e5c

Available in cache; verification: upstream_checksum
## Direct dependencies
- dio: ^4.0.1
- flutter: map[sdk:flutter]

## Package README (untrusted upstream documentation)
# curl_logger_dio_interceptor

A Flutter curl-command generator for Dio.

![curl_logger_dio_interceptor log output](/example/assets/example.png?raw=true)

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
```dart
_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.

## Changelog
## 0.0.1

* Initial release including basic curl requests logging







 
