[erlang-questions] web frameworks - yet another question about ...

Garrett Smith g@REDACTED
Thu Aug 25 17:05:29 CEST 2011


On Thu, Aug 25, 2011 at 7:01 AM, Joe Armstrong <erlang@REDACTED> wrote:
> I seem to have asked the same question in many ways ...
>
> I want to build a simple generic web server.
>
> By my way of thinking I should just have to write a single module,
> that exports a very simple interface.
>
> Suppose I define such a module, call this my_server.
>
> I'd like to write this as follows:
>
>    -module(my_server).
>    -export([request/6])
>
>    request(Who, Command, URI, Args, Headers, Data) ->
>         ...
>         {reply, Headers, Data1}

https://github.com/gar1t/modlib

It's a light wrapper around the inets httpd server and uses semantics
similar to what you're describing.

Garrett



More information about the erlang-questions mailing list