Class: Expressr::Listeners::Request

Inherits:
Noder::Events::Listeners::Base
  • Object
show all
Defined in:
lib/expressr/listeners/request.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



4
5
6
7
8
# File 'lib/expressr/listeners/request.rb', line 4

def call(env)
  env[:request] = Expressr::Request.new(env[:request_env])
  callback.call(env) if callback
  env
end