Class: MultiprotocolThriftRackApp
- Inherits:
-
Object
- Object
- MultiprotocolThriftRackApp
- Defined in:
- lib/multiprotocol_thrift_rack_app.rb
Overview
Multiprotocol Thrift Rack application
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(processor, protocol_factory_map, logger: default_logger, buffered: false) ⇒ MultiprotocolThriftRackApp
constructor
A new instance of MultiprotocolThriftRackApp.
Constructor Details
#initialize(processor, protocol_factory_map, logger: default_logger, buffered: false) ⇒ MultiprotocolThriftRackApp
Returns a new instance of MultiprotocolThriftRackApp.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/multiprotocol_thrift_rack_app.rb', line 9 def initialize( processor, protocol_factory_map, logger: default_logger, buffered: false ) @processor = processor @protocol_factory_map = protocol_factory_map.freeze @logger = logger @buffered = buffered end |
Instance Method Details
#call(env) ⇒ Object
21 22 23 24 25 |
# File 'lib/multiprotocol_thrift_rack_app.rb', line 21 def call(env) request = Rack::Request.new(env) respone = build_response(request) respone.finish end |