JsFetchOptions constructor
const
JsFetchOptions({
- Duration? timeout,
- Duration headersTimeout = const Duration(seconds: 30),
- Duration? bodyIdleTimeout = const Duration(seconds: 30),
- int maxConcurrentRequests = 16,
- int maxRequestBytes = 8 * 1024 * 1024,
- int maxTotalBufferedBytes = 32 * 1024 * 1024,
- Duration? uploadIdleTimeout = const Duration(seconds: 30),
- int? maxResponseBytes,
- int maxBufferedBodyBytes = 8 * 1024 * 1024,
- int maxCloneBufferBytes = 8 * 1024 * 1024,
- int maxFormDataParts = 1024,
- int maxMultipartHeaderBytes = 16 * 1024,
- int maxMultipartPartBytes = 8 * 1024 * 1024,
- int maxRedirects = 20,
- Uri? baseUrl,
- bool allowRequest(
- Uri url
- JsFetchTransport? transport,
Implementation
const JsFetchOptions({
this.timeout,
this.headersTimeout = const Duration(seconds: 30),
this.bodyIdleTimeout = const Duration(seconds: 30),
this.maxConcurrentRequests = 16,
this.maxRequestBytes = 8 * 1024 * 1024,
this.maxTotalBufferedBytes = 32 * 1024 * 1024,
this.uploadIdleTimeout = const Duration(seconds: 30),
this.maxResponseBytes,
this.maxBufferedBodyBytes = 8 * 1024 * 1024,
this.maxCloneBufferBytes = 8 * 1024 * 1024,
this.maxFormDataParts = 1024,
this.maxMultipartHeaderBytes = 16 * 1024,
this.maxMultipartPartBytes = 8 * 1024 * 1024,
this.maxRedirects = 20,
this.baseUrl,
this.allowRequest,
this.transport,
});