RestApiClientRequestOptions class

Options for configuring HTTP requests in the RestApiClient.

Constructors

RestApiClientRequestOptions({Map<String, dynamic>? headers, String? contentType, bool silentException = false, bool? requiresAuth, Duration? sendTimeout, Duration? receiveTimeout})
Constructor for creating an instance of RestApiClientRequestOptions.

Properties

contentType ↔ String?
The content type of the request.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
headers ↔ Map<String, dynamic>?
A map of headers to include with the request.
getter/setter pair
receiveTimeout ↔ Duration?
Timeout for receiving the response from the server.
getter/setter pair
requiresAuth ↔ bool?
Whether authentication is required for this request.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout ↔ Duration?
Timeout for sending the request data to the server.
getter/setter pair
silentException ↔ bool
A flag to indicate whether to suppress exceptions.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toOptions() → Options
Converts the current request options to Dio's Options format.
toString() → String
A string representation of this object.
inherited

Operators

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