Sha256: 52b1d92d395d1d9d4a560b9cfc303c2a9fddaed20e31186b6a0fb6dcff601576
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 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, $targetfolder) 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.1.9 | lib/rack/blogengine/application.rb |