AdapterBaseOptions constructor
const
AdapterBaseOptions({
- Duration? connectTimeout,
- Duration? receiveTimeout,
- Duration? sendTimeout,
- Map<
String, dynamic> headers = const {}, - String? contentType,
- ResponseType responseType = ResponseType.json,
- bool followRedirects = true,
- int maxRedirects = 5,
- bool validateStatus(
- int statusCode
- bool receiveDataWhenStatusError = true,
- Map<
String, dynamic> extra = const {}, - bool persistentConnection = true,
Implementation
const AdapterBaseOptions({
this.connectTimeout,
this.receiveTimeout,
this.sendTimeout,
this.headers = const {},
this.contentType,
this.responseType = ResponseType.json,
this.followRedirects = true,
this.maxRedirects = 5,
this.validateStatus,
this.receiveDataWhenStatusError = true,
this.extra = const {},
this.persistentConnection = true
});