Class | Rack::Cascade
In: | lib/rack/cascade.rb
Parent: | Object

Rack::Cascade tries a request on several apps, and returns the first response that is not 404 or 405 (or in a list of configurable status codes).

### Methods

<< add call include? new

### Constants

NotFound | = | [404, {CONTENT_TYPE => "text/plain"}, []]

### Attributes

apps | [R] |

### Public Class methods

new(apps, catch=[404, 405])

### Public Instance methods

<<(app)

Alias for add

add(app)
call(env)
include?(app)

[Validate]