diff options
author | Paul Joseph Davis <davisp@apache.org> | 2011-09-08 05:00:10 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2011-09-08 05:00:10 +0000 |
commit | 71081311b2b11ed923869ce5bd11ce7b0fd1da2c (patch) | |
tree | 85c5613959f8435e4b3de922765b01ecb945477d /src/couchdb/priv/couch_js/http.h | |
parent | 61ca44e384ca10b0b7bf68123c79ed43715ea9c9 (diff) |
Fix CouchJS compatibility with older SpiderMonkey.
This is a backport of the work to make CouchJS build against all of the
major versions of SpiderMonkey. Thanks to Randall Leeds and Chris
Coulson for the original patches.
Backport based on r1137464 and r1164346
Fixes COUCHDB-1078
Fixes COUCHDB-1260
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1166525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/priv/couch_js/http.h')
-rw-r--r-- | src/couchdb/priv/couch_js/http.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/couchdb/priv/couch_js/http.h b/src/couchdb/priv/couch_js/http.h index b5f8c70f..373d1e48 100644 --- a/src/couchdb/priv/couch_js/http.h +++ b/src/couchdb/priv/couch_js/http.h @@ -13,6 +13,12 @@ #ifndef COUCH_JS_HTTP_H #define COUCH_JS_HTTP_H -JSObject* install_http(JSContext* cx, JSObject* global); +void http_check_enabled(); +JSBool http_ctor(JSContext* cx, JSObject* req); +void http_dtor(JSContext* cx, JSObject* req); +JSBool http_open(JSContext* cx, JSObject* req, jsval mth, jsval url, jsval snc); +JSBool http_set_hdr(JSContext* cx, JSObject* req, jsval name, jsval val); +JSBool http_send(JSContext* cx, JSObject* req, jsval body); +int http_status(JSContext* cx, JSObject* req); -#endif
\ No newline at end of file +#endif |