RequestOptions class
Per-request configuration that overrides client-level defaults.
All fields are nullable — null means "use the client default".
Constructors
Properties
- baseUrl → String?
-
Override the base URL for this single request (e.g. a CDN endpoint).
final
-
extra
→ Map<
String, dynamic> ? -
Extra arbitrary metadata forwarded to interceptors / middleware.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
Merged on top of the client-level headers.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skipInterceptors → bool
-
When
truethe request bypasses every registered Interceptor.final - timeout → Duration?
-
Socket connection + response timeout combined.
final
Methods
-
copyWith(
{String? baseUrl, Map< String, String> ? headers, Duration? timeout, bool? skipInterceptors, Map<String, dynamic> ? extra}) → RequestOptions - Produces a new RequestOptions with fields selectively overridden.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited