(methods: IntDict, error: string)
| 465 | ); |
| 466 | |
| 467 | const checkMethod = (methods: IntDict, error: string): Node => { |
| 468 | const success = n('req_after_protocol'); |
| 469 | const failure = p.error(ERROR.INVALID_CONSTANT, error); |
| 470 | |
| 471 | const map: Record<number, Node> = {}; |
| 472 | for (const method of Object.keys(methods)) { |
| 473 | map[methods[method]] = success; |
| 474 | } |
| 475 | |
| 476 | return this.span.protocol.end( |
| 477 | this.invokePausable('on_protocol_complete', ERROR.CB_PROTOCOL_COMPLETE, this.load('method', map, failure)), |
| 478 | ); |
| 479 | }; |
| 480 | |
| 481 | n('req_http_start') |
| 482 | .match(' ', n('req_http_start')) |
nothing calls this directly
no test coverage detected