MCPcopy Create free account
hub / github.com/TruthHun/BookStack / requestProtocol

Function requestProtocol

static/editor.md/lib/codemirror/mode/http/http.js:66–73  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

64 }
65
66 function requestProtocol(stream, state) {
67 if (stream.match(/^HTTP\/\d\.\d$/)) {
68 state.cur = header;
69 return "keyword";
70 } else {
71 return failFirstLine(stream, state);
72 }
73 }
74
75 function header(stream) {
76 if (stream.sol() && !stream.eat(/[ \t]/)) {

Callers

nothing calls this directly

Calls 1

failFirstLineFunction · 0.85

Tested by

no test coverage detected