Extends: undici.Dispatcher
Agent allow dispatching requests against multiple different origins.
Requests are not guaranteed to be dispatched in order of invocation.
Arguments:
- options
AgentOptions
(optional)
Returns: Agent
Extends: PoolOptions
- factory
(origin: URL, opts: Object) => Dispatcher
- Default:(origin, opts) => new Pool(origin, opts)
Implements Client.closed
Implements Client.destroyed
Implements Dispatcher.close([callback])
.
Implements Dispatcher.destroy([error, callback])
.
Implements Dispatcher.dispatch(options, handler)
.
Extends: DispatchOptions
- origin
string | URL
Implements Dispatcher.destroy([error, callback])
.
See Dispatcher.connect(options[, callback])
.
Implements Dispatcher.dispatch(options, handler)
.
See Dispatcher.pipeline(options, handler)
.
See Dispatcher.request(options [, callback])
.