MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / failFirstLine

Function failFirstLine

static/js/codemirror/mode/http/http.js:2–6  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

1CodeMirror.defineMode("http", function() {
2 function failFirstLine(stream, state) {
3 stream.skipToEnd();
4 state.cur = header;
5 return "error";
6 }
7
8 function start(stream, state) {
9 if (stream.match(/^HTTP\/\d\.\d/)) {

Callers 3

startFunction · 0.85
responseStatusCodeFunction · 0.85
requestProtocolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected