Browse thread
web server interface for Ocaml ( like rack, wsgi, ...)?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Richard Jones <rich@a...> |
| Subject: | Re: [Caml-list] web server interface for Ocaml ( like rack, wsgi, ...)? |
On Thu, Sep 16, 2010 at 10:29:23AM -0700, Jake Donham wrote: > On Thu, Sep 16, 2010 at 4:05 AM, ben kuin <benkuin@gmail.com> wrote: > > Is there a web server interface / adapter for ocaml that abstracts > > your application from the various web server implementations? > > There is no OCaml equivalent to rack / wsgi. It would be nice to have > something like this; the existing web frameworks (e.g. Ocamlnet and > Ocsigen as another poster mentioned) implement the whole stack, but it > would be nice to be able to mix and match (e.g. run Ocsigen's Eliom > applications in Ocamlnet's Netplex server). Part of the difficulty is > that there are different approaches to concurrency/asynchrony (Lwt for > Ocsigen, Equeue for netplex). My impression is that rack / wsgi punt > on this issue, and assume threading. But an OCaml equivalent could > possibly offer both a concurrent/asynchronous and a direct-style > interface. Maybe I'm missing the point, but what's wrong with simply proxying the HTTP connections through your favorite webserver to the backend ocsigen/ocamlnet server? Rich. -- Richard Jones Red Hat