Options constructor
const
Options({
- String method = 'GET',
- Map<
String, List< ? headers,String> > - 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,
Implementation
const Options({
this.method = 'GET',
this.headers,
this.body,
this.connectTimeout = const Duration(seconds: 10),
this.writeTimeout = const Duration(seconds: 10),
this.readTimeout = const Duration(seconds: 10),
this.followRedirects = true,
this.maxRedirects = 5,
this.retries = 3,
this.persistentConnection = true,
this.extra,
});