[racket] Method + URL based dispatch

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon May 28 16:14:24 EDT 2012

Although you could always just put an if inside of the function that
dispatch-rules went to, I've added native support for selecting based
on method to web-server/dispatch.


On Sat, May 26, 2012 at 4:16 PM, Jordan Schatz <jordan at noionlabs.com> wrote:
> I would like to dispatch requests based on a combination of URL and HTTP
> method. For example a GET request to /path-to-resource would be dispatched to
> one function, and a POST request to /path-to-resource would be dispatched to
> another function. The built in dispatch
> http://docs.racket-lang.org/web-server/dispatch.html?q=url%20dispatch doesn't
> appear to supports this style of use.
> Is there anything built in that supports this style of usage?
> Thanks,
> Jordan
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.