Method: Flame::Dispatcher#run!

Defined in:
lib/flame/dispatcher.rb

#run!Object

Start of execution the request



33
34
35
36
37
38
39
40
41
42
# File 'lib/flame/dispatcher.rb', line 33

def run!
  catch :halt do
    try_static ||
      try_static(GEM_STATIC_FILES) ||
      try_route ||
      halt(404)
  end
  response.write body unless request.http_method == :HEAD
  response.finish
end