Sha256: 643b970cd071648574cdbfd0464b0928474fe50b4e1bddac96ee624cca2b8a12
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
module Rack module Blogengine # # Application is the callable middleware class # run Rack::Blogengine::Application # # @author [benny] # class Application # Call Method for run this method as Rack Middleware. # @param env Environment contains information such as path, headers etc... # @return [Array] response Array def self.call(env) # Router for map docs to routes route = ApplicationRouter.map_route(env, $documents) if route return route["response"] else #TODO Errorpage handling return [404, {"Content-Type" => "text/html; charset=UTF-8"}, ["Page not found"]] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-blogengine-0.2.0 | lib/rack/blogengine/application.rb |