ProxyConfig class
Configuration for UpstreamProxy.
Constructors
Properties
- cacheDir → String?
-
Directory to store cached responses on disk.
final
- cacheEnabled → bool
-
Whether response caching is enabled.
final
- cacheTtl → Duration
-
Time-to-live for cached responses.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Extra headers to attach to every outgoing request.
final
- proxyUrl → String
-
The intermediary proxy URL that requests are routed through.
final
- retries → int
-
Number of retry attempts on transient failures.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetUrl → String
-
The final target URL that requests are ultimately destined for.
final
- timeout → Duration
-
HTTP request timeout.
final
Methods
-
copyWith(
{String? targetUrl, String? proxyUrl, Map< String, String> ? headers, Duration? timeout, int? retries, bool? cacheEnabled, String? cacheDir, Duration? cacheTtl}) → ProxyConfig - Returns a copy with selected fields replaced.
-
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