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

Method initWithBoundary

src/parsers/Multipart.js:85–94  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

83 }
84
85 initWithBoundary(str) {
86 this.boundary = Buffer.from(`\r\n--${str}`);
87 this.lookbehind = Buffer.alloc(this.boundary.length + 8);
88 this.state = STATE.START;
89 this.boundaryChars = {};
90
91 for (let i = 0; i < this.boundary.length; i++) {
92 this.boundaryChars[this.boundary[i]] = true;
93 }
94 }
95
96 // eslint-disable-next-line max-params
97 _handleCallback(name, buf, start, end) {

Callers 6

createInitMultipartFunction · 0.95
index.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected