AnyFn<I, O> typedef

AnyFn<I, O> = Future<Response<I, O>> Function(Request<I, O> request)

AnyFn represents the client-side invocation of an RPC. Interceptors can wrap this invocation, add request headers, and wrap parts of the request or response to inspect and log.

Implementation

typedef AnyFn<I, O> = Future<Response<I, O>> Function(Request<I, O> request);