incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vlad GURDIGA <gurd...@gmail.com>
Subject Re: couchjs vs. js
Date Fri, 31 Jul 2009 07:51:10 GMT
Thank you Jan!

On Thu, Jul 30, 2009 at 1:14 PM, Jan Lehnardt<jan@apache.org> wrote:
> I could have sworn I replied to this earlier :)

I apologize, I'm here only a few months, this is why I could have missed it.

> On 30 Jul 2009, at 11:55, Vlad GURDIGA wrote:
>
>> There is a comment in trunk/test/test.js* stating:
>>
>> // This is a JS wrapper for the curl function made available in
>> couch_js.c,
>> // it should be used in other JavaScripts that would like to make HTTP
>> calls.
>>
>> and looking in trunk/src/couchdb/couch_js.c** we can see functions
>> like GetHttp, HeadHttp, PostHttp, PutHttp, DelHttp, CopyHttp, etc.
>>
>> Does this mean we can make HTTP calls from JS files? It would be
>> really handy for integration tests on the server-sde, but AFAIK,
>> SpiderMonkey (the js binary) dos not have any documented function to
>> make HTTP calls.
>>
>> This is why I suspect that there is additional functionality in
>> couchjs vs. js which we could use.
>>
>> Now, can somebody confirm or infirm this suspicion?
>
> couchjs is js + curl bindings for the test suite.

Great!

Now is that curl functionality documented anywhere else other than the
source code itself?

Mime
View raw message