|
|
|
|
|
by peterhunt
4361 days ago
|
|
I want to serve a JSON response over HTTP, preferably from a standalone server (like django etc). Later I want to talk to Postgres and memcached. Do I use this thing? http://ocsigen.org/ocsigenserver/ All the docs either don't do what I'm looking for (i.e set up a web server to serve some static files) or are broken links! OCaml is actually what I'd prefer to use (since I had a blast with SML/NJ) I'll check out that book, thanks! But I did just skim the ToC and it has nothing about serving HTTP. Serving HTTP is like my #1 use case for anything these days :/ |
|
https://github.com/mirage/ocaml-cohttp/blob/master/examples/...
For JSON I normally use 'Jsonm' but I've heard good things about 'Ezjsonm':
https://github.com/samoht/ezjsonm
I've not personally tried them but 'postgresql-ocaml' and 'ocaml-memcached' look plausible.