Agent.fromOptions constructor
Agent.fromOptions(
- ApplicationOptions config, {
- 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;