MCPcopy
hub / github.com/probelabs/goreplay / TEST_httpMethod

Function TEST_httpMethod

middleware/middleware.js:586–595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

584}
585
586function TEST_httpMethod() {
587 const examplePayload = "GET /test HTTP/1.1\r\n\r\n";
588
589 let payload = Buffer.from(examplePayload);
590 let method = httpMethod(payload);
591
592 if (method != "GET") {
593 return fail(`Path '${method}' != 'GET'`)
594 }
595}
596
597
598function TEST_httpPathParam() {

Callers

nothing calls this directly

Calls 2

httpMethodFunction · 0.85
failFunction · 0.85

Tested by

no test coverage detected