MCPcopy Create free account
hub / github.com/breck7/scroll / httpPostUrl

Method httpPostUrl

external/.scrollLibs.js:23795–23802  ·  view source on GitHub ↗
(url, data)

Source from the content-addressed store, hash-verified

23793 return await this.httpGetUrlFromCache("/proxy", queryStringMap, WillowHTTPProxyCacheResponse)
23794 }
23795 async httpPostUrl(url, data) {
23796 if (this._offlineMode) return new WillowHTTPResponse()
23797 const superAgentResponse = await superagent
23798 .post(this._makeRelativeUrlAbsolute(url))
23799 .set(this._headers || {})
23800 .send(data)
23801 return new WillowHTTPResponse(superAgentResponse)
23802 }
23803 encodeURIComponent(str) {
23804 return encodeURIComponent(str)
23805 }

Callers

nothing calls this directly

Calls 2

setMethod · 0.45

Tested by

no test coverage detected