Class: Otto::RouteHandlers::InstanceMethodHandler

Inherits:
BaseHandler
  • Object
show all
Defined in:
lib/otto/route_handlers/instance_method.rb

Overview

Handler for instance methods (existing Otto pattern) Route syntax: Controller#action

Controller instances receive full Rack request/response access:

  • initialize(request, response) with Rack::Request and Rack::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

#call, #initialize

Constructor Details

This class inherits a constructor from Otto::RouteHandlers::BaseHandler