HttpCommandCaller

constructor(endpoints: Map<String, URI>, service: String? = null, client: HttpClient = client(), timeout: Duration = DEFAULT_TIMEOUT, contracts: List<Manifest> = classPathContracts())

The caller of the contexts' internal ports at the fixed endpoints, as the service named service, on client, each call answered within timeout and routed as contracts list its command.


constructor(endpoints: EndpointResolver, service: String?, client: HttpClient, timeout: Duration, timeouts: Map<String, Duration> = emptyMap(), contracts: List<Manifest> = classPathContracts())

The caller of the contexts' internal ports endpoints finds, as the service named service, each call answered within its context's timeout of timeouts, else timeout, and routed as contracts list its command.