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

Function parseExtensions

deps/undici/undici.js:14940–14953  ·  view source on GitHub ↗
(extensions)

Source from the content-addressed store, hash-verified

14938 }
14939 __name(isValidOpcode, "isValidOpcode");
14940 function parseExtensions(extensions) {
14941 const position = { position: 0 };
14942 const extensionList = /* @__PURE__ */ new Map();
14943 while (position.position < extensions.length) {
14944 const pair = collectASequenceOfCodePointsFast(";", extensions, position);
14945 const [name, value = ""] = pair.split("=", 2);
14946 extensionList.set(
14947 removeHTTPWhitespace(name, true, false),
14948 removeHTTPWhitespace(value, false, true)
14949 );
14950 position.position++;
14951 }
14952 return extensionList;
14953 }
14954 __name(parseExtensions, "parseExtensions");
14955 function isValidClientWindowBits(value) {
14956 if (value.length === 0) {

Callers 1

processResponseFunction · 0.70

Calls 4

removeHTTPWhitespaceFunction · 0.70
splitMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected