MCPcopy Create free account
hub / github.com/ambianic/peerfetch / put

Method put

javascript/src/peerfetch.ts:461–466  ·  view source on GitHub ↗

* * Similar to axious get(url,[config]) * * @see https://github.com/axios/axios#axiosputurl-data-config * @see https://masteringjs.io/tutorials/axios/put * * @param {*} url resource URL for the PUT request * @param {*} data data payload for the PUT request * @

(url: string, data: any, config: any = {})

Source from the content-addressed store, hash-verified

459 * @param {*} config request header options
460 */
461 async put (url: string, data: any, config: any = {}) {
462 config.url = url
463 config.method = 'PUT'
464 config.data = data
465 await this.request(config)
466 }
467
468 /**
469 *

Callers 1

_fetchFunction · 0.80

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected