Sha256: d13e3160be1f91cb4a42f4c5bc20d2d1daa68ccc3c5a6fc73b969c7de65eaf97

Contents?: true

Size: 639 Bytes

Versions: 3

Compression:

Stored size: 639 Bytes

Contents

The StandardDispatcher is, as the name suggests, the standard dispatcher
to use with most applications and web sites created under IOWA.  It provides
a rich set of request rewriting capabilities and flexible, REST-aware
dispatching that can make full use of the depth of HTTP's verbs.

:rewrites:
- :match: "{|request| request.hostname =~ /\.?foo\.com/}"
  :branch: 
  - :match: "(?i-mx:\.htm)$"
    :sub: ".html"
- :match: "{|request| request.hostname =~ /\.?bar\.com/}"
  :branch:
  - :match: "[A-Z]"
    :eval: "request.uri.downcase!"
:map:
  /INDEX.html: CapIndex
  /index.htm: Index
  /INDEX.HTM: IndexHTM
  /randompix.png: RandomPix

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
IOWA-1.0.3 doc/StandardDispatcher.txt
IOWA-1.0.2 doc/StandardDispatcher.txt
IOWA-1.0.0 doc/StandardDispatcher.txt