MCPcopy Create free account
hub / github.com/nodejs/node / getFormDataBoundary

Method getFormDataBoundary

deps/undici/src/lib/web/fetch/formdata.js:206–212  ·  view source on GitHub ↗

* @param {FormData} formData * @returns {string | null}

(formData)

Source from the content-addressed store, hash-verified

204 * @returns {string | null}
205 */
206 static getFormDataBoundary (formData) {
207 const boundary = formData.#boundary
208 if (boundary != null) return boundary
209
210 // eslint-disable-next-line no-return-assign
211 return formData.#boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
212 }
213}
214
215const { getFormDataState, setFormDataState, getFormDataBoundary } = FormData

Callers

nothing calls this directly

Calls 1

randomFunction · 0.50

Tested by

no test coverage detected