HttpConfig class

HTTP configuration builder for LLM providers

This class provides a fluent interface for configuring HTTP settings separately from the main LLMBuilder to reduce method count.

Constructors

HttpConfig.new()

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

build() Map<String, dynamic>
Get the configuration map
bypassSSLVerification(bool bypass) HttpConfig
Enables SSL certificate verification bypass
connectionTimeout(Duration timeout) HttpConfig
Sets connection timeout
dioClient(Dio dio) HttpConfig
Provides a custom Dio client for full HTTP control
enableLogging(bool enable) HttpConfig
Enables request/response logging for debugging
Sets a single custom HTTP header
headers(Map<String, String> headers) HttpConfig
Sets custom HTTP headers
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
proxy(String proxyUrl) HttpConfig
Sets HTTP proxy configuration
receiveTimeout(Duration timeout) HttpConfig
Sets receive timeout
sendTimeout(Duration timeout) HttpConfig
Sets send timeout
sslCertificate(String certificatePath) HttpConfig
Sets custom SSL certificate path
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited