Agent.fromOptions constructor

Agent.fromOptions(
  1. ApplicationOptions config, {
  2. bool useHTTPS = false,
})

Configures a new agent that sends requests to a server configured by config.

Implementation

Agent.fromOptions(ApplicationOptions config, {bool useHTTPS = false})
    : _scheme = useHTTPS ? "https" : "http",
      _host = "localhost",
      _port = config.port,
      _application = null;