[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Spiffy Question: handle-not-found
From: |
Taylor Venable |
Subject: |
Re: [Chicken-users] Spiffy Question: handle-not-found |
Date: |
Sun, 14 Feb 2010 12:22:07 -0500 |
I made a mistake when copying this example from the real source code; it
should have read:
> (handle-not-found
> (lambda (path)
> (log-to (debug-log) "REQUEST: ~s" path)
> (cond ((string=? path "/foo/bar") ; s/uri/path/
> (x))
> ((string=? path "/asdf/jkl") ; s/uri/path/
> (y))
> (else
> (handle-other)))))
Where x and y do their own header setup, and write their own output.
--
Taylor Venable
http://metasyntax.net/