MCPcopy Create free account
hub / github.com/avoidwork/tenso / canModify

Method canModify

src/tenso.js:90–92  ·  view source on GitHub ↗

* Checks if a given HTTP method can modify data * @param {string} arg - HTTP method to check * @returns {boolean} True if the method can modify data, false otherwise

(arg)

Source from the content-addressed store, hash-verified

88 * @returns {boolean} True if the method can modify data, false otherwise
89 */
90 canModify (arg) {
91 return arg.includes(DELETE) || hasBody(arg);
92 }
93
94 /**
95 * Handles connection setup for incoming requests

Callers 1

connectMethod · 0.95

Calls 1

hasBodyFunction · 0.90

Tested by

no test coverage detected