Method: Authzed::GrpcUtil::BearerToken#client_streamer

Defined in:
lib/grpcutil/bearer_token.rb

#client_streamer(requests: nil, call: nil, method: nil, metadata: nil) ⇒ Object

Intercept a client streaming call

Parameters:

  • requests (Enumerable) (defaults to: nil)
  • call (GRPC::ActiveCall) (defaults to: nil)
  • method (String) (defaults to: nil)
  • metadata (Hash) (defaults to: nil)


37
38
39
40
# File 'lib/grpcutil/bearer_token.rb', line 37

def client_streamer(requests: nil, call: nil, method: nil, metadata: nil)
  [AUTHORIZATION_HEADER] = bearer_token_header
  yield
end