MCPcopy Index your code
hub / github.com/nodejs/node / toString

Method toString

lib/internal/mime.js:209–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 }
208
209 toString() {
210 this.#parse();
211 let ret = '';
212 for (const { 0: key, 1: value } of this.#data) {
213 const encoded = encode(value);
214 // Ensure they are separated
215 if (ret.length) ret += ';';
216 ret += `${key}=${encoded}`;
217 }
218 return ret;
219 }
220
221 // Used to act as a friendly class to stringifying stuff
222 // not meant to be exposed to users, could inject invalid values

Callers

nothing calls this directly

Calls 2

#parseMethod · 0.95
encodeFunction · 0.70

Tested by

no test coverage detected