Sha256: f2780dae19339e4992f65f66572de6c883d599f9c3d113ef30ebf9d910b41ec4

Contents?: true

Size: 1.7 KB

Versions: 13

Compression:

Stored size: 1.7 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, int ssl_verify_peer);
	#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, int ssl_verify_peer);
	#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, int ssl_verify_peer);
	#define do_downloadfile rho_asynchttp_downloadfile

	extern VALUE rho_asynchttp_uploadfile(const char* url, VALUE headers, const char* body, const char* filename, const char* callback, const char* callback_params, int ssl_verify_peer);
	#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, int ssl_verify_peer);
extern VALUE do_post(const char* url, VALUE headers, const char* body, const char* callback, const char* callback_params, int ssl_verify_peer);
extern VALUE do_downloadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params, int ssl_verify_peer);
extern VALUE do_uploadfile(const char* url, VALUE headers, const char* body, const char* filename, const char* callback, const char* callback_params, int ssl_verify_peer);
extern void cancel(const char* cancel_callback);

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rhodes-2.0.3 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.2 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.rc2 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.rc1 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.beta11 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.beta10 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.beta9 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.beta8 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.beta7 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.beta6 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.beta4 platform/shared/ruby/ext/asynchttp/asynchttp.i
rhodes-2.0.0.beta3 platform/shared/ruby/ext/asynchttp/asynchttp.i