MCPcopy
hub / github.com/axios/axios / SpecFormData

Class SpecFormData

tests/unit/helpers/formDataToStream.test.js:4–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import formDataToStream from '../../../lib/helpers/formDataToStream.js';
3
4class SpecFormData {
5 constructor() {
6 this._entries = [];
7 this[Symbol.toStringTag] = 'FormData';
8 }
9 append(name, value) {
10 this._entries.push([name, value]);
11 }
12 entries() {
13 return this._entries[Symbol.iterator]();
14 }
15 [Symbol.iterator]() {
16 return this._entries[Symbol.iterator]();
17 }
18}
19
20const makeBlobLike = ({ type, name, size, payload }) => ({
21 type,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected