Class: EY::Tea::Server::Mock::ThinMuxer
- Inherits:
-
Object
- Object
- EY::Tea::Server::Mock::ThinMuxer
- Defined in:
- lib/htttee/server/mock.rb
Instance Method Summary collapse
- #async_safe(app) ⇒ Object
- #call(env) ⇒ Object
-
#initialize(app) ⇒ ThinMuxer
constructor
A new instance of ThinMuxer.
- #thin_options ⇒ Object
Constructor Details
#initialize(app) ⇒ ThinMuxer
Returns a new instance of ThinMuxer.
35 36 37 |
# File 'lib/htttee/server/mock.rb', line 35 def initialize(app) @app = Rack::Mux.new(async_safe(app), ) end |
Instance Method Details
#async_safe(app) ⇒ Object
43 44 45 |
# File 'lib/htttee/server/mock.rb', line 43 def async_safe(app) AsyncFixer.new(app) end |
#call(env) ⇒ Object
39 40 41 |
# File 'lib/htttee/server/mock.rb', line 39 def call(env) @app.call(env) end |
#thin_options ⇒ Object
47 48 49 |
# File 'lib/htttee/server/mock.rb', line 47 def { :server => Thin, :environment => 'none' } end |