(stream, state)
| 19 | } |
| 20 | |
| 21 | function start(stream, state) { |
| 22 | if (stream.match(/^HTTP\/\d\.\d/)) { |
| 23 | state.cur = responseStatusCode; |
| 24 | return "keyword"; |
| 25 | } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) { |
| 26 | state.cur = requestPath; |
| 27 | return "keyword"; |
| 28 | } else { |
| 29 | return failFirstLine(stream, state); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | function responseStatusCode(stream, state) { |
| 34 | var code = stream.match(/^\d+/); |
nothing calls this directly
no test coverage detected