添加URLProtocol

添加URLProtocol
pull/125/head
horizonlin 2018-12-18 11:37:49 +08:00 committed by GitHub
parent 6b7045e211
commit ec9e4c99d8
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 @@
/* /*
//================================================================= //=================================================================
使 使
localhost:50022http localhost:50022http
GET GET
http://localhost:50022/method/json_param http://localhost:50022/method/json_param
json_param使url_encodejson json_param使url_encodejson
POST POST
http://localhost:50022/method http://localhost:50022/method
postjson_param postjson_param
URI URI
method method
json_param json_param
json json
{"code":0,"data":varb} {"code":0,"data":varb}
code0datadata code0datadata
*/ */
@ -57,6 +57,7 @@ public:
bool init_https(); bool init_https();
void run(void); void run(void);
void stop(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) { ex_astr get_content_type(ex_astr file_suffix) {
content_type_map::iterator it=m_content_type_map.find(file_suffix); content_type_map::iterator it=m_content_type_map.find(file_suffix);