You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This function asynchronously parses multipart requests until the end, so that any work considering unfinished request wouldn't need to be undone.
36
+
* This function asynchronously parses multipart requests until the end, so that any work considering unfinished request wouldn't need to be undone. It requires "regAbort" from "@ublitzjs/core" package to be used on response.
37
37
* This utility expects "unpaused" response object and doesn't set any additional properties on it.
38
38
* When limits are exceeded - acts as like because of an error (as described below)
39
39
* @param limits - limits passed to "busboy"
@@ -54,7 +54,7 @@ export type FilesInMemory<Repeated extends boolean> = FilesType<FileInMemory, Re
54
54
* }
55
55
* },
56
56
* // mode "memory" | "disk"
57
-
* "disk",
57
+
* "disk", It requires "regAbort" from "core" package to be used on response.
58
58
* // whether to accept repeated files/fields
59
59
* false
60
60
* );
@@ -270,15 +270,14 @@ export async function parseFormDataBody<T extends "memory" | "disk", Repeated ex
270
270
parserStream.write(copy);
271
271
if(isLast){parserStream.end();}
272
272
});
273
-
// calling emitter.emit many times won't hurt, as listener is ONE and emitEmergency might be called IN ONE PLACE
* This utility just accumulates body and verifies if it stays within the given limit.
289
+
* This utility just accumulates body and verifies if it stays within the given limit. It requires "regAbort" from "@ublitzjs/core" package to be used.
291
290
* @param CL this is Content-Length to be compared against + acts as a preallocation amount.
292
291
* If not given by developer OR == 0 - constantly happen memory reallocations with Buffer.concat
293
292
* @param shared whether return Buffer of SharedArrayBuffer or simple ArrayBuffer. SharedArrayBuffer lets you pass data to a worker thread if work there is cpu intensive
0 commit comments