(stream, state)
| 6 | } |
| 7 | |
| 8 | function start(stream, state) { |
| 9 | if (stream.match(/^HTTP\/\d\.\d/)) { |
| 10 | state.cur = responseStatusCode; |
| 11 | return "keyword"; |
| 12 | } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) { |
| 13 | state.cur = requestPath; |
| 14 | return "keyword"; |
| 15 | } else { |
| 16 | return failFirstLine(stream, state); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | function responseStatusCode(stream, state) { |
| 21 | var code = stream.match(/^\d+/); |
nothing calls this directly
no test coverage detected