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

Method constructor

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

* @param {number} status The response code. * @param {!Object } headers The response headers. All header names * will be converted to lowercase strings for consistent lookups. * @param {string} body The response body.

(status, headers, body)

Source from the content-addressed store, hash-verified

120 * @param {string} body The response body.
121 */
122 constructor(status, headers, body) {
123 this.status = /** number */ status
124 this.body = /** string */ body
125 this.headers = /** !Map<string, string>*/ new Map()
126 for (let header in headers) {
127 this.headers.set(header.toLowerCase(), headers[header])
128 }
129 }
130
131 /** @override */
132 toString() {

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected