* Creates a command executor with support for Chromium's custom commands. * @param {!Promise } url The server's URL. * @param vendorPrefix * @return {!command.Executor} The new command executor.
(url, vendorPrefix)
| 109 | * @return {!command.Executor} The new command executor. |
| 110 | */ |
| 111 | function createExecutor(url, vendorPrefix) { |
| 112 | const agent = new http.Agent({ keepAlive: true }) |
| 113 | const client = url.then((url) => new http.HttpClient(url, agent)) |
| 114 | const executor = new http.Executor(client) |
| 115 | configureExecutor(executor, vendorPrefix) |
| 116 | return executor |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Configures the given executor with Chromium-specific commands. |
no test coverage detected