MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / method

Method method

lib.commonjs/utils/fetch.js:211–219  ·  view source on GitHub ↗

* The HTTP method to use when requesting the URI. If no method * has been explicitly set, then ``GET`` is used if the body is * null and ``POST`` otherwise.

()

Source from the content-addressed store, hash-verified

209 * null and ``POST`` otherwise.
210 */
211 get method() {
212 if (this.#method) {
213 return this.#method;
214 }
215 if (this.hasBody()) {
216 return "POST";
217 }
218 return "GET";
219 }
220 set method(method) {
221 if (method == null) {
222 method = "";

Callers

nothing calls this directly

Calls 1

hasBodyMethod · 0.95

Tested by

no test coverage detected