Class: Kris::Kross::Handler

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/kris-kross/handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appObject

Returns the value of attribute app.



6
7
8
# File 'lib/kris-kross/handler.rb', line 6

def app
  @app
end

Instance Method Details

#call(env) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/kris-kross/handler.rb', line 8

def call(env)
  @env = env

  if options_request?
    [200, option_request_headers, [""]]
  else
    respond(env)
  end
end