diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2011-09-06 15:27:10 -0500 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2011-09-22 17:02:47 -0500 |
commit | 34ba230324bb329ce5ed54d703dcb4d84a65ab86 (patch) | |
tree | ea777cf0b2f6682642aaf64c5b3a1a55e4c3a523 /couchjs/c_src/http.h | |
parent | 8a96880cd02ea9286dea597d213ddf0d4487cbc3 (diff) |
Updated CouchJS to support SpiderMonkey 1.8.5
This is tested against the 1.7.0, 1.8.0rc1, and 1.8.5 tarballs from
Mozilla's FTP directory. It's mostly the same code from trunk minus a
few tweaks to get it past a couple type errors using c++ instead of cc.
Diffstat (limited to 'couchjs/c_src/http.h')
-rw-r--r-- | couchjs/c_src/http.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/couchjs/c_src/http.h b/couchjs/c_src/http.h index b5f8c70f..75a0d561 100644 --- a/couchjs/c_src/http.h +++ b/couchjs/c_src/http.h @@ -13,6 +13,14 @@ #ifndef COUCH_JS_HTTP_H #define COUCH_JS_HTTP_H -JSObject* install_http(JSContext* cx, JSObject* global); +#include "sm.h" -#endif
\ No newline at end of file +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 |