via

infix fun <REQ : PortRequest, RES : PortResponse> REQ.via(port: Port<REQ, RES>): RES

Infix function to chain a request to a port, processing it and returning a response.

Since

1.0.0

Parameters

REQ

The type of requests that this port handles, must be a subtype of PortRequest.

RES

The type of responses that this port returns, must be a subtype of PortResponse.

port

The port to process the request.