Class: Thrift::Middleware::NopMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/thrift/middleware.rb

Instance Method Summary collapse

Instance Method Details

#handle_bidi_stream(_mth, args, istream, ostream, &block) ⇒ Object



12
13
14
# File 'lib/thrift/middleware.rb', line 12

def handle_bidi_stream(_mth, args, istream, ostream, &block)
  block.call(args, istream, ostream)
end

#handle_binary(_mth, args = {}, &block) ⇒ Object



4
5
6
# File 'lib/thrift/middleware.rb', line 4

def handle_binary(_mth, args = {}, &block)
  block.call(args)
end

#handle_inbound_stream(_mth, args, istream, &block) ⇒ Object



16
17
18
# File 'lib/thrift/middleware.rb', line 16

def handle_inbound_stream(_mth, args, istream, &block)
  block.call(args, istream)
end

#handle_outbound_stream(_mth, args, ostream, &block) ⇒ Object



20
21
22
# File 'lib/thrift/middleware.rb', line 20

def handle_outbound_stream(_mth, args, ostream, &block)
  block.call(args, ostream)
end

#handle_unary(_mth, args = {}, &block) ⇒ Object



8
9
10
# File 'lib/thrift/middleware.rb', line 8

def handle_unary(_mth, args = {},  &block)
  block.call(args)
end