MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / constructor

Method constructor

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

* @param {string} method The HTTP method to use for the request. * @param {string} path The path on the server to send the request to. * @param {Object=} opt_data This request's non-serialized JSON payload data.

(method, path, opt_data)

Source from the content-addressed store, hash-verified

91 * @param {Object=} opt_data This request's non-serialized JSON payload data.
92 */
93 constructor(method, path, opt_data) {
94 this.method = /** string */ method
95 this.path = /** string */ path
96 this.data = /** Object */ opt_data
97 this.headers = /** !Map<string, string> */ new Map([['Accept', 'application/json; charset=utf-8']])
98 }
99
100 /** @override */
101 toString() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected