rhttp_curl_logger 0.0.2 copy "rhttp_curl_logger: ^0.0.2" to clipboard
rhttp_curl_logger: ^0.0.2 copied to clipboard

An interceptor for rhttp that prints the request as a single line cURL command

rhttp_curl_logger #

Pub Version GitHub License GitHub last commit Pub Points

A lightweight logger for the rhttp package that prints requests as cURL commands to your console for easy debugging and sharing.


πŸ“¦ Installation #

Add the package to your pubspec.yaml:

dev_dependencies:
  rhttp_curl_logger: ^0.0.2

πŸš€ Usage #

Use the RhttpCurlLogger interceptor in your rhttp client:

import 'package:rhttp_curl_logger/rhttp_curl_logger.dart';

final client = await RhttpClient.create(
  interceptors: [
    RhttpCurlLogger(
      useDoubleQuotes: true,    // default
      escapeQuotesInBody: true, // default
      multiline: false,         // default
      logName: 'curl_log',      // default
      logger: null,             // default
    ),
  ],
);
1
likes
0
points
80
downloads

Publisher

verified publisheralbinpk.dev

Weekly Downloads

An interceptor for rhttp that prints the request as a single line cURL command

Homepage
Repository (GitHub)
View/report issues

Topics

#curl #rhttp #interceptor #logging #rhttp-curl-logger

License

unknown (license)

Dependencies

flutter, rhttp

More

Packages that depend on rhttp_curl_logger