MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / toHttpRequest

Function toHttpRequest

javascript/selenium-webdriver/lib/http.js:384–389  ·  view source on GitHub ↗

* @param {CommandSpec} resource * @return {!Request}

(resource)

Source from the content-addressed store, hash-verified

382 * @return {!Request}
383 */
384 function toHttpRequest(resource) {
385 log_.finest(() => `Building HTTP request: ${JSON.stringify(resource)}`)
386 let parameters = command.getParameters()
387 let path = buildPath(resource.path, parameters)
388 return new Request(resource.method, path, parameters)
389 }
390}
391
392const CLIENTS = /** !WeakMap<!Executor, !(Client|IThenable<!Client>)> */ new WeakMap()

Callers 1

buildRequestFunction · 0.85

Calls 3

buildPathFunction · 0.85
finestMethod · 0.80
getParametersMethod · 0.45

Tested by

no test coverage detected