Options class

An options for fetcher.

Constructors

Options({String method = 'GET', Map<String, List<String>>? headers, Object? body, Duration connectTimeout = const Duration(seconds: 10), Duration writeTimeout = const Duration(seconds: 10), Duration readTimeout = const Duration(seconds: 10), bool followRedirects = true, int maxRedirects = 5, int retries = 3, bool persistentConnection = true, Map<String, dynamic>? extra})
const

Properties

body Object?
final
connectTimeout Duration
final
extra Map<String, dynamic>?
final
followRedirects bool
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, List<String>>?
final
maxRedirects int
final
method String
final
persistentConnection bool
final
readTimeout Duration
final
retries int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writeTimeout Duration
final

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