Viewing version 0.0.1+2. Open the latest package page.

curl_logger_dio_interceptor

0.0.1+2

A Flutter curl-command generator for Dio.

Download archive

Readme

curl_logger_dio_interceptor

A Flutter curl-command generator for Dio.

curl_logger_dio_interceptor log output

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.

Changelog

0.0.1

  • Initial release including basic curl requests logging

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'curl_logger_dio_interceptor:0.0.1+2'
pubspec.yaml
name: curl_logger_dio_interceptor
description: A Flutter curl-command generator for Dio.
version: 0.0.1+2
homepage: https://github.com/OwnWeb/curl_logger_dio_interceptor

environment:
  sdk: ">=2.12.0 <3.0.0"
  flutter: ">=1.20.0"

dependencies:
  dio: ^4.0.1
  flutter:
    sdk: flutter

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^1.0.0

Version history

VersionPublishedArchiveSHA-256
0.0.1Cached · Upstream SHA-256 matchedDownload659de275…9d8e5c
0.0.1+2Cached · Upstream SHA-256 matchedDownloadcab0f123…5a2937
0.0.2Cached · Upstream SHA-256 matchedDownloade0a11931…7f769c
0.0.3Cached · Upstream SHA-256 matchedDownload10f8137c…4ef135
1.0.0Cached · Upstream SHA-256 matchedDownloadf20d8918…62b214
1.0.1Cached · Upstream SHA-256 matchedDownload0702d32b…db2a5b

Dependencies

dio "^4.0.1"

flutter { "sdk": "flutter" }