[racket] difference between serve/servlet and serve/dispatch?
I'm puzzled by this function:
(serve/dispatch dispatch) → void
dispatch : (request? . -> . response/c)
Calls serve/servlet with appropriate arguments so that every request is handled by dispatch.
Specifically, it appears that serve/dispatch has the same contract (minus all the optional args) that serve/servlet has. How is calling
(serve/dispatch blog-dispatch)
different from calling
(serve/servlet blog-dispatch)
?
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20100629/918f4548/attachment.p7s>