HttpConfigUtils class
HTTP configuration utilities for unified Dio setup across providers
This class provides common HTTP configuration functionality that can be used by all providers to support features like proxies, custom headers, SSL configuration, and logging.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isAdvancedHttpSupported → bool
-
Check if advanced HTTP features are supported on the current platform
no setter
Static Methods
-
createConfiguredDio(
{required String baseUrl, required Map< String, String> defaultHeaders, required LLMConfig config, Duration? defaultTimeout}) → Dio - Create a configured Dio instance with unified HTTP settings
-
createSimpleDio(
{required String baseUrl, required Map< String, String> headers, Duration? timeout}) → Dio - Create a simple Dio instance with minimal configuration
-
validateHttpConfig(
LLMConfig config) → void - Validate HTTP configuration