Sha256: bdaddd2432748593d5a2c439af58f7f37650a88059d4fa20efae0024f4d8aac2
Contents?: true
Size: 1.5 KB
Versions: 4
Compression:
Stored size: 1.5 KB
Contents
/* asynchttp.i */ %module "Rho::AsyncHttp" %{ /* Put header files here or function declarations like below */ extern VALUE rho_asynchttp_get(const char* url, VALUE headers, const char* callback, const char* callback_params); #define do_get rho_asynchttp_get extern VALUE rho_asynchttp_post(const char* url, VALUE headers, const char* body, const char* callback, const char* callback_params); #define do_post rho_asynchttp_post extern VALUE rho_asynchttp_downloadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params); #define do_downloadfile rho_asynchttp_downloadfile extern VALUE rho_asynchttp_uploadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params); #define do_uploadfile rho_asynchttp_uploadfile extern void rho_asynchttp_cancel(const char* cancel_callback); #define cancel rho_asynchttp_cancel %} %typemap(default) const char* cancel_callback { $1 = "*"; } extern VALUE do_get(const char* url, VALUE headers, const char* callback, const char* callback_params); extern VALUE do_post(const char* url, VALUE headers, const char* body, const char* callback, const char* callback_params); extern VALUE do_downloadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params); extern VALUE do_uploadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params); extern void cancel(const char* cancel_callback);
Version data entries
4 entries across 4 versions & 1 rubygems