interceptUnary<Q, R> method
ResponseFuture<R>
interceptUnary<Q, R>(
- ClientMethod<
Q, R> method, - Q request,
- CallOptions options,
- ClientUnaryInvoker<
Q, R> invoker,
Implementation
@override
ResponseFuture<R> interceptUnary<Q, R>(ClientMethod<Q, R> method, Q request,
CallOptions options, ClientUnaryInvoker<Q, R> invoker) {
var newOptions = options.mergedWith(
CallOptions(metadata: <String, String>{'authorization': jwt}),
);
return invoker(
method,
request,
newOptions,
);
}