| | |
| | | std::string strInfo = request->path; |
| | | auto func = m_map_TASKFUNC[strInfo]; |
| | | if(func != nullptr){ |
| | | std::string strRet = func(request->remote_endpoint_address(),request->remote_endpoint_port(),request->content.string(),response); |
| | | std::cout << "url "<< strInfo << std::endl; |
| | | std::string content = request->content.string(); |
| | | std::cout << "content " << content << std::endl; |
| | | std::string strRet = func(request->remote_endpoint_address(),request->remote_endpoint_port(),content,response); |
| | | std::cout << "strRet " << strRet << std::endl; |
| | | if(strRet.size() > 0){ |
| | | DBG("strRet.size() > 0"); |
| | | response->write(strRet); |