I have a mount_proc that handles a range of URL's. After doing
some initial processing within the mount_proc, I want to pass a
subset of these URL's to a FileHandler; for the rest of the URL's
I just want to output a message.
A simplified version of what I want to do looks like this:
my_mount_proc = lambda {
|req, res|
# First, do some initial processing for all URL's that are
# passed in to this proc. But then ...
if req.path =~ /some-sort-of-special-pattern/ then
### send the request to a FileHandler
else
res.body = 'No FileHandler -- just this simple message'
res['Content-type'] = 'text/plain'
end
}
What do I put between the 'if' and the 'else' in order to send the
matching requests to a FileHandler?
Thanks in advance.
--
Lloyd Zusman
ljz@asfast.com
God bless you.