HttpClient

A basic HTTP client used to send messages to a remote end.

Constructor

new HttpClient(serverUrl, opt_agentopt, opt_proxyopt, nullable, client_optionsnullable)

Parameters:
NameTypeAttributesDescription
serverUrlstring

URL for the WebDriver server to send commands to.

opt_agenthttp.Agent<optional>

The agent to use for each request. Defaults to http.globalAgent.

opt_proxystring<optional>
<nullable>

The proxy to use for the connection to the server. Default is to use no proxy.

client_optionsObject.<string, Object><nullable>
Implements
  • httpLib.Client

Members

client_options

client options, header overrides

keepAlive

sets keep-alive for the agent see https://stackoverflow.com/a/58332910

Methods

send()