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

Method update

src/llhttp/http.ts:1201–1209  ·  view source on GitHub ↗
(field: string, value: number, next?: string | Node)

Source from the content-addressed store, hash-verified

1199 }
1200
1201 private update(field: string, value: number, next?: string | Node): Node {
1202 const p = this.llparse;
1203
1204 const res = p.invoke(p.code.update(field, value));
1205 if (next !== undefined) {
1206 res.otherwise(this.node(next));
1207 }
1208 return res;
1209 }
1210
1211 private resetHeaderState(next: string | Node): Node {
1212 return this.update('header_state', HEADER_STATE.GENERAL, next);

Callers 5

buildLineMethod · 0.95
buildHeaderValueMethod · 0.95
headersCompletedMethod · 0.95
resetHeaderStateMethod · 0.95
setHeaderFlagsMethod · 0.95

Calls 1

nodeMethod · 0.95

Tested by

no test coverage detected