cppjieba-server
cppjieba-server copied to clipboard
看了下代码,POST模式仅支持 simple
如题,希望 POST 模式和 GET 模式能混用,但 method 和 format 希望能走 GET 来实现变更输出。
virtual bool DoPOST(const HttpReqInfo& httpReq, string& strSnd) {
vector
httpReq.GET("method", method);
jieba_.Cut(sentence, words, true);
httpReq.GET("format", format);
Run(httpReq.GetBody(), method,format, strSnd);
//Run(httpReq.GetBody(), "MIX", "simple", strSnd);
return true;
}
这样就可以支持了。。。。