struct
GRPC::CallInfo
- GRPC::CallInfo
- Struct
- Value
- Object
Overview
CallInfo carries metadata about an in-flight RPC call passed to interceptors. Interceptors should use this instead of parsing raw strings.
Example: def call(info : GRPC::CallInfo, request, ctx, next_call) STDERR.puts "→ #{info.method_path} (#{info.kind})" next_call.call(info.method_path, request, ctx) end
Defined in:
grpc/interceptor.crConstructors
Instance Method Summary
-
#kind : RPCKind
Streaming kind of this RPC
-
#method : String
method returns the method name portion of the path, e.g.
-
#method_path : String
Full gRPC method path, e.g.
-
#service : String
service returns the service portion of the path, e.g.