[racket] difference between serve/servlet and serve/dispatch?

From: John Clements (clements at brinckerhoff.org)
Date: Tue Jun 29 14:20:54 EDT 2010

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)



-------------- 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>

Posted on the users mailing list.