The document discusses Rack middleware and how it allows for modular web application development in Ruby. Some key points:
- Rack provides a modular interface between web servers and Ruby frameworks, allowing frameworks and middleware to be composed together.
- Middleware can add functionality like caching, authentication, logging, etc. Middleware are run before the application code.
- Popular middleware include Rack::Cache for caching and Rack::Auth for authentication. CloudKit is a middleware for building web services.
- Middleware can cooperate by delegating to each other in a defined order and URI space. This allows middleware to work together to provide features to applications.
121. use Rack::Pool::Session
use CloudKit::OAuthFilter
use CloudKit::OpenIDFilter
use CloudKit::Service, :collections => [:notes, :todos]
(run DefaultApp)
Tuesday, March 17, 2009