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

Function writeResponse

javascript/selenium-webdriver/test/proxy_test.js:28–34  ·  view source on GitHub ↗
(res, body, encoding, contentType)

Source from the content-addressed store, hash-verified

26
27test.suite(function (env) {
28 function writeResponse(res, body, encoding, contentType) {
29 res.writeHead(200, {
30 'Content-Length': Buffer.byteLength(body, encoding),
31 'Content-Type': contentType,
32 })
33 res.end(body)
34 }
35
36 function writePacFile(res) {
37 writeResponse(

Callers 2

writePacFileFunction · 0.85
proxy_test.jsFile · 0.85

Calls 1

endMethod · 0.80

Tested by

no test coverage detected