添加urlprotocol启动方法

添加urlprotocol启动方法
pull/124/head
horizonlin 2018-12-11 14:05:55 +08:00 committed by GitHub
parent e6e51da565
commit fc72e2c292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 12 deletions

View File

@ -15,28 +15,28 @@
/*
//=================================================================
使
使
127.0.0.1:50022http
127.0.0.1:50022http
GET
GET
http://127.0.0.1:50022/method/json_param
json_param使url_encodejson
json_param使url_encodejson
POST
POST
http://127.0.0.1:50022/method
postjson_param
postjson_param
URI
method
json_param
URI
method
json_param
json
json
{"code":0,"data":varb}
code0datadata
code0datadata
*/
@ -54,6 +54,7 @@ public:
bool init(const char* ip, int port);
void run(void);
void stop(void);
void _rpc_func_url_protocol(const ex_astr& func_args, ex_astr& buf);
ex_astr get_content_type(ex_astr file_suffix)
{