Module: Orange::Middleware

Defined in:
lib/orange-core/middleware/base.rb,
lib/orange-core/middleware/loader.rb,
lib/orange-core/middleware/static.rb,
lib/orange-core/middleware/globals.rb,
lib/orange-core/middleware/database.rb,
lib/orange-core/middleware/rerouter.rb,
lib/orange-core/middleware/template.rb,
lib/orange-core/middleware/route_site.rb,
lib/orange-core/middleware/static_file.rb,
lib/orange-core/middleware/four_oh_four.rb,
lib/orange-core/middleware/route_context.rb,
lib/orange-core/middleware/restful_router.rb,
lib/orange-core/middleware/show_exceptions.rb

Overview

Orange Middleware is a bit more complex than Rack middleware. Initializing it requires both a link to the downstream app and the core, and calling the app often requires an Orange::Packet

Orange::Middleware::Base takes care of these basic tasks. Subclasses override the init method for extra initialization and the packet_call for a call with a packet, rather than a basic call

Defined Under Namespace

Classes: Base, Database, FourOhFour, Globals, Loader, Rerouter, RestfulRouter, RouteContext, RouteSite, ShowExceptions, Static, StaticFile, Template