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

Function requestProtocol

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

Source from the content-addressed store, hash-verified

51 }
52
53 function requestProtocol(stream, state) {
54 if (stream.match(/^HTTP\/\d\.\d$/)) {
55 state.cur = header;
56 return "keyword";
57 } else {
58 return failFirstLine(stream, state);
59 }
60 }
61
62 function header(stream) {
63 if (stream.sol() && !stream.eat(/[ \t]/)) {

Callers

nothing calls this directly

Calls 2

failFirstLineFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected