Agent.onPort constructor

Agent.onPort(
  1. int? _port
)

Configures a new agent that sends requests to 'http://localhost:_port'.

Implementation

Agent.onPort(this._port)
    : _scheme = "http",
      _host = "localhost",
      _application = null;