Method: Authzed::GrpcUtil::BearerToken#server_streamer

Defined in:
lib/grpcutil/bearer_token.rb

#server_streamer(request: nil, call: nil, method: nil, metadata: nil) ⇒ Object

Intercept a server streaming call

Parameters:

  • request (Object) (defaults to: nil)
  • call (GRPC::ActiveCall) (defaults to: nil)
  • method (String) (defaults to: nil)
  • metadata (Hash) (defaults to: nil)


50
51
52
53
# File 'lib/grpcutil/bearer_token.rb', line 50

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