From: Pierre-Alexandre V. <ont...@gm...> - 2014-03-04 15:19:03
|
HI, As far I understand my use of NetCGI, it only allow GET/POST/... URLs with parameters like : /service_name?param1=one¶m2=two It's now usual, according to REST philosophy, to write URLs as follow : GET /table_name/17 PUT /table_name/17 and of course more complex URLs as : PUT /publishers/1/magazines/2/photos/3 However there's ocaml's library to do that (aka https://github.com/rgrinberg/opium which user cohttp based on Lwt/Async), NetCGI is so powerful and multicore ready that I would prefer to use it. With opium you can format your URLs as follow : let print_person = get "/person/:name/:age" ... So, is there a way to do that with NetCGI ? Or, if I want to contribute by coding it, what, Gerd, would be the way you prefer to patch NetCGI ? Regards, Pierre-Alexandre -- --------------------- https://twitter.com/#!/ontologiae/ http://linuxfr.org/users/montaigne |