(stream, onProgress, flush)
| 325 | hasMaxBodyLength && (utils.isReadableStream(data) || utils.isStream(data)); |
| 326 | |
| 327 | const trackRequestStream = (stream, onProgress, flush) => |
| 328 | trackStream( |
| 329 | stream, |
| 330 | DEFAULT_CHUNK_SIZE, |
| 331 | (loadedBytes) => { |
| 332 | if (hasMaxBodyLength && loadedBytes > maxBodyLength) { |
| 333 | throw (pendingBodyError = maxBodyLengthError()); |
| 334 | } |
| 335 | onProgress && onProgress(loadedBytes); |
| 336 | }, |
| 337 | flush |
| 338 | ); |
| 339 | |
| 340 | if ( |
| 341 | supportsRequestStream && |
no test coverage detected