$createUnaryCall<Q, R> method
ResponseFuture<R>
$createUnaryCall<Q, R>(
- ClientMethod<
Q, R> method, - Q request, {
- CallOptions? options,
inherited
Implementation
ResponseFuture<R> $createUnaryCall<Q, R>(ClientMethod<Q, R> method, Q request,
{CallOptions? options}) {
var invoker = (method, request, options) => ResponseFuture<R>(
_channel.createCall<Q, R>(method, Stream.value(request), options));
for (final interceptor in _interceptors.reversed) {
final delegate = invoker;
invoker = (method, request, options) =>
interceptor.interceptUnary<Q, R>(method, request, options, delegate);
}
return invoker(method, request, _options.mergedWith(options));
}