Filter

class
Superclass
Mongrel2::Config( :filter )

Mongrel2 Filter configuration class

# Using the config DSL:
filter '/usr/local/lib/mongrel2/filters/null.so',
    extensions: ["*.html", "*.txt"],
    min_size: 1000

# Which is the same as:
Mongrel2::Config::Filter.create(
    mame: '/usr/local/lib/mongrel2/filters/null.so',
    settings: {
      extensions: ["*.html", "*.txt"],
      min_size: 1000
    }

# Or:
server.add_filter(
    mame: '/usr/local/lib/mongrel2/filters/null.so',
    settings: {
      extensions: ["*.html", "*.txt"],
      min_size: 1000
    })