JsFetchOptions constructor

const JsFetchOptions({
  1. Duration? timeout,
  2. Duration headersTimeout = const Duration(seconds: 30),
  3. Duration? bodyIdleTimeout = const Duration(seconds: 30),
  4. int maxConcurrentRequests = 16,
  5. int maxRequestBytes = 8 * 1024 * 1024,
  6. int maxTotalBufferedBytes = 32 * 1024 * 1024,
  7. Duration? uploadIdleTimeout = const Duration(seconds: 30),
  8. int? maxResponseBytes,
  9. int maxBufferedBodyBytes = 8 * 1024 * 1024,
  10. int maxCloneBufferBytes = 8 * 1024 * 1024,
  11. int maxFormDataParts = 1024,
  12. int maxMultipartHeaderBytes = 16 * 1024,
  13. int maxMultipartPartBytes = 8 * 1024 * 1024,
  14. int maxRedirects = 20,
  15. Uri? baseUrl,
  16. bool allowRequest(
    1. Uri url
    )?,
  17. 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,
});