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

Method constructor

lib/internal/mime.js:337–343  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

335 #subtype;
336 #parameters;
337 constructor(string) {
338 string = `${string}`;
339 const data = parseTypeAndSubtype(string);
340 this.#type = data[0];
341 this.#subtype = data[1];
342 this.#parameters = instantiateMimeParams(StringPrototypeSlice(string, data[2]));
343 }
344
345 get type() {
346 return this.#type;

Callers

nothing calls this directly

Calls 1

parseTypeAndSubtypeFunction · 0.85

Tested by

no test coverage detected