MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / _url

Method _url

lib/helper/REST.js:269–271  ·  view source on GitHub ↗

* Generates url based on format sent (takes endpoint + url if latter lacks 'http') * * @param {*} url

(url)

Source from the content-addressed store, hash-verified

267 * @param {*} url
268 */
269 _url(url) {
270 return /^\w+\:\/\//.test(url) ? url : this.options.endpoint + url
271 }
272
273 /**
274 * Set timeout for the request

Callers 8

sendGetRequestMethod · 0.95
sendHeadRequestMethod · 0.95
sendPostRequestMethod · 0.95
sendPatchRequestMethod · 0.95
sendPutRequestMethod · 0.95
sendDeleteRequestMethod · 0.95
REST_test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected