module

GRPC::Interceptors

Interceptors contains helpers for building interceptor chains. The first interceptor in the array executes outermost (first on the way in, last on the way out).

Class methods

build_client_chain(interceptors : Array(ClientInterceptor), base : UnaryClientCall) : UnaryClientCall

build_client_chain wraps base with interceptors. Returns a single UnaryClientCall that runs interceptors[0] first.

Source
build_client_chain(interceptors : Array(ClientInterceptor), base : ServerStreamClientCall) : ServerStreamClientCall
Source
build_client_chain(interceptors : Array(ClientInterceptor), base : LiveClientStreamClientCall) : LiveClientStreamClientCall
Source
build_client_chain(interceptors : Array(ClientInterceptor), base : LiveBidiStreamClientCall) : LiveBidiStreamClientCall
Source
build_server_chain(interceptors : Array(ServerInterceptor), base : UnaryServerCall) : UnaryServerCall

build_server_chain wraps base with interceptors. Returns a single call proc that runs interceptors[0] first.

Source
build_server_chain(interceptors : Array(ServerInterceptor), base : ServerStreamServerCall) : ServerStreamServerCall
Source
build_server_chain(interceptors : Array(ServerInterceptor), base : ClientStreamServerCall) : ClientStreamServerCall
Source
build_server_chain(interceptors : Array(ServerInterceptor), base : BidiStreamServerCall) : BidiStreamServerCall
Source