Class: Otto::RouteHandlers::ClassMethodHandler
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- Otto::RouteHandlers::ClassMethodHandler
- Defined in:
- lib/otto/route_handlers/class_method.rb
Overview
Handler for class methods (existing Otto pattern) Route syntax: Controller.action
Class methods receive full Rack request/response access:
-
Method signature: def self.action(request, response)
-
Direct access to sessions, cookies, headers, and the raw env
Use this handler for endpoints requiring request-level control (logout, session management, cookie manipulation, custom header handling).
Instance Attribute Summary
Attributes inherited from BaseHandler
#otto_instance, #route_definition
Method Summary
Methods inherited from BaseHandler
Constructor Details
This class inherits a constructor from Otto::RouteHandlers::BaseHandler