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

Method sendGetRequest

lib/helper/REST.js:298–304  ·  view source on GitHub ↗

* Send GET request to REST API * * ```js * I.sendGetRequest('/api/users.json'); * ``` * * @param {*} url * @param {object} [headers={}] - the headers object to be sent. By default, it is sent as an empty object * * @returns {Promise<*>} response

(url, headers = {})

Source from the content-addressed store, hash-verified

296 * @returns {Promise<*>} response
297 */
298 async sendGetRequest(url, headers = {}) {
299 const request = {
300 baseURL: this._url(url),
301 headers,
302 }
303 return this._executeRequest(request)
304 }
305
306 /**
307 * Send HEAD request to REST API

Callers 4

REST_test.jsFile · 0.80
steps.jsFile · 0.80

Calls 2

_urlMethod · 0.95
_executeRequestMethod · 0.95

Tested by

no test coverage detected