(callback)
| 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 | |
| 33 | export default QuerystringParser; |
nothing calls this directly
no test coverage detected