dio_curl_interceptor library
Classes
- Ansi
- BubbleBorderRadius
- Border radius configuration for bubble overlay components
- BubbleDimensions
- Centralized dimension management for bubble overlay components
- BubbleOverlay
- A reusable Flutter widget that provides a draggable, floating bubble (similar to Messenger chat heads, but confined inside your app).
- BubbleOverlayController
- Controller to manage bubble overlay state and behavior
- BubbleStyle
- Styling configuration for bubble overlay components
- CachedCurlEntry
- CachedCurlEntryAdapter
- CachedCurlService
- Service class for managing cached cURL entries
- CacheOptions
- CircuitBreaker
- Circuit breaker for preventing cascading failures.
- CurlBubble
- A specialized bubble overlay that integrates CurlViewer functionality with the draggable bubble interface.
- CurlDetails
- see Ansi for more colors and styles
- CurlInterceptor
- A Dio interceptor that converts HTTP requests into cURL commands and provides options for logging, caching, and Discord webhook integration.
- CurlInterceptorFactory
- Factory for creating CurlInterceptor instances with intelligent version selection
- CurlInterceptorV2
- CurlInterceptorV2 - A production-ready interceptor with essential async patterns for non-blocking webhook operations without over-engineering.
- CurlOptions
- CurlUtils
- A utility class for generating, logging, and caching cURL commands from Dio requests and responses.
- CurlViewer
- CurlViewerColors
- Reusable color palette for CurlViewer component
- CurlViewerStyle
- Global configuration style for CurlViewer
- CurlViewerThemeColors
- Theme-aware colors that adapt to light/dark themes
- DiscordEmbed
- A class to represent a Discord embed object.
- DiscordEmbedAuthor
- A class to represent a Discord embed author object.
- DiscordEmbedField
- A class to represent a Discord embed field object.
- A class to represent a Discord embed footer object.
- DiscordEmbedImage
- A class to represent a Discord embed image object.
- DiscordEmbedThumbnail
- A class to represent a Discord embed thumbnail object.
- DiscordInspector
- Options for configuring Discord webhook integration for cURL logging.
- DiscordWebhookMessage
- A class to represent a Discord webhook message. This class follows the Discord Webhook API structure.
- DiscordWebhookSender
- A class to handle sending cURL logs and other messages to Discord webhooks.
- ErrorDetails
- FireAndForget
- Fire-and-forget utility for non-blocking operations.
- InspectorUtils
- Utility class for handling webhook inspections and caching across different webhook services.
- PrettyConfig
- Configuration options for pretty printing HTTP requests and responses in a box format.
- RequestDetails
- ResizeConfig
- Configuration class for resize handle dimensions and behavior
- ResponseDetails
- RetryPolicy
- Retry policy with exponential backoff.
- SenderInfo
- Configuration class to hold sender information for webhook messages.
- TelegramInspector
- Options for configuring Telegram Bot API integration for cURL logging.
- TelegramWebhookSender
- A class to handle sending cURL logs and other messages to Telegram via Bot API.
- WebhookCache
- Cache for webhook cooldown periods.
- WebhookInspectorBase
- Abstract base class for webhook inspectors.
- WebhookSenderBase
- Abstract base class for webhook senders.
Enums
- CurlBehavior
- CurlInterceptorVersion
- Available CurlInterceptor versions for different use cases
- CurlViewerDisplayType
- Display type for the CurlViewer
- ResizeType
- Enum to define different resize types for the bubble overlay
- ResponseStatus
- Represents the status of an HTTP response based on its status code.
Functions
-
formatEmbedValue(
dynamic rawValue, {int? len = 1000, String? lang}) → String - Formats a value for embedding in Discord webhook messages.
-
genCurl(
RequestOptions options) → String? -
Generates a cURL command string from
RequestOptions
. -
showCurlViewer(
BuildContext context, {CurlViewerDisplayType displayType = CurlViewerDisplayType.dialog, VoidCallback? onClose, bool showCloseButton = false}) → void - Shows the CurlViewer in different display modes
Exceptions / Errors
- CircuitBreakerOpenException
- Exception thrown when a circuit breaker is open.