On Sun, May 5, 2013 at 1:12 AM, Matthew Butterick <[email protected]> wrote: > The docs for web-server/dispatch allude to the filesystem server that lurks > behind the dispatch rules to handle requests that are not handled by > dispatch rules. > > Is there a way to explicitly send a request to the filesystem server? > > For instance, I have a dispatch route that checks if the requested file > exists, and if not, generates it immediately and saves it to disk. However, > at that point, I'd prefer to take the original request and pass it to the > filesystem server.
The default dispatcher chain puts the filesystem server directly after the servlet handler and then the "file not found" handler is after that. If you ever want to have a dispatcher skip to the next one, you can call (next-dispatcher), even if you've done work like creating a file. Alternatively, you could explicitly call the file server by embedding it into your servlet, but I don't recommend that. Jay -- Jay McCarthy <[email protected]> Assistant Professor / Brigham Young University http://faculty.cs.byu.edu/~jay "The glory of God is Intelligence" - D&C 93 ____________________ Racket Users list: http://lists.racket-lang.org/users

