Sha256: ee314a32576bfa093684eb2465268e34ae9c22370130de6c947c71c709d6b250
Contents?: true
Size: 1.06 KB
Versions: 21
Compression:
Stored size: 1.06 KB
Contents
#!/usr/bin/env ruby require 'tnetstring' require 'mongrel2' unless defined?( Mongrel2 ) require 'mongrel2/config' unless defined?( Mongrel2::Config ) # Mongrel2 X-Request configuration class # # # Using the config DSL: # xrequest '/usr/local/lib/mongrel2/filters/watermark.so', # extensions: ['*.jpg', '*.png'], # src: '/usr/local/var/image/acme.png' # # # Which is the same as: # Mongrel2::Config::XRequest.create( # name: '/usr/local/lib/mongrel2/filters/sendfile.so', # settings: { # min_size: 1000 # } # # # Or: # server.add_xrequest( # name: '/usr/local/lib/mongrel2/filters/sendfile.so', # settings: { # min_size: 1000 # }) # class Mongrel2::Config::XRequest < Mongrel2::Config( :xrequest ) ### As of Mongrel2/1.8.1: # CREATE TABLE xrequest (id INTEGER PRIMARY KEY, # server_id INTEGER, # name TEXT, # settings TEXT); # many_to_one :server # Serialize the settings column as TNetStrings plugin :serialization, :tnetstring, :settings end # class Mongrel2::Config::XRequest
Version data entries
21 entries across 21 versions & 1 rubygems