[erlang-questions] [ANN] mochicow 0.1
Benoit Chesneau
bchesneau@REDACTED
Fri Jun 8 20:58:31 CEST 2012
On Fri, Jun 8, 2012 at 7:25 PM, Bob Ippolito <bob@REDACTED> wrote:
> On Fri, Jun 8, 2012 at 9:56 AM, Benoit Chesneau <bchesneau@REDACTED> wrote:
>>
>>
>> I just released the version 1 of mochicow, a mochiweb adapter for
>> cowboy. Use your mochiweb code d with cowboy.
>>
>> There are 2 ways to use mochicow:
>>
>> - as a cowboy protocol: It will use the socket acceptor pool of cowboy
>> instead of the mochiweb one.
>> - as a protocol upgrade. Like websockets you can upgrade a cowboy
>> handler to use a mochiweb loop. It allows you to use both your new
>> code with cowboy and old code with mochiweb.
>>
>> See the examples in the examples for the usage.
>>
>> The source is on github:
>>
>> https://github.com/benoitc/mochicow
>>
>> Enjoy :)
>
>
> This is fantastic, I had considered doing this myself but I don't have any
> legacy code to worry about at the moment :)
>
Thanks :)
I just commited a simple example with webmachine:
https://github.com/benoitc/mochicow/tree/master/examples/webmachine_demo
The most interesting part is the `webmachine_mochicow` module:
https://github.com/benoitc/mochicow/blob/master/examples/webmachine_demo/src/webmachine_mochicow.erl
Also I'm doing some tests on top of the couchdb API with my fork
couch_core/rcouch in the mochicow branch, and it seems to work enough
well:
https://github.com/refuge/couch_core/compare/master...mochicow
- benoît
More information about the erlang-questions
mailing list