MCPcopy Index your code
hub / github.com/nodejs/llhttp / testFlags

Method testFlags

src/llhttp/http.ts:1229–1237  ·  view source on GitHub ↗
(flag: number, map: Record<number, Node>,
                    next?: string | Node)

Source from the content-addressed store, hash-verified

1227 }
1228
1229 private testFlags(flag: number, map: Record<number, Node>,
1230 next?: string | Node): Node {
1231 const p = this.llparse;
1232 const res = p.invoke(p.code.test('flags', flag), map);
1233 if (next !== undefined) {
1234 res.otherwise(this.node(next));
1235 }
1236 return res;
1237 }
1238
1239 private testLenientFlags(flag: number, map: Record<number, Node>,
1240 next?: string | Node): Node {

Callers 4

buildHeaderFieldMethod · 0.95
buildHeaderValueMethod · 0.95

Calls 1

nodeMethod · 0.95

Tested by

no test coverage detected