MCPcopy
hub / github.com/node-formidable/formidable / _flush

Method _flush

src/parsers/Querystring.js:20–30  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

18 }
19
20 _flush(callback) {
21 const fields = new URLSearchParams(this.buffer);
22 for (const [key, value] of fields) {
23 this.push({
24 key,
25 value,
26 });
27 }
28 this.buffer = '';
29 callback();
30 }
31}
32
33export default QuerystringParser;

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected