This commit is contained in:
aozhiwei 2019-08-29 18:56:58 +08:00
parent 8b2880b442
commit dafc7107fd

View File

@ -51,6 +51,7 @@ namespace f8
std::string url_params; std::string url_params;
std::string content; std::string content;
a8::XObject headers; a8::XObject headers;
std::map<std::string, std::string> kv_params;
AsyncHttpNode* nextnode = nullptr; AsyncHttpNode* nextnode = nullptr;
}; };
@ -162,9 +163,14 @@ namespace f8
} }
} }
void ProcSign(AsyncHttpNode* node)
{
}
void ProcAsyncHttp(AsyncHttpNode* node) void ProcAsyncHttp(AsyncHttpNode* node)
{ {
ProcSign(node);
std::string finally_url; std::string finally_url;
if (node->url.find('?') != std::string::npos) { if (node->url.find('?') != std::string::npos) {
finally_url = node->url + node->url_params; finally_url = node->url + node->url_params;
@ -388,6 +394,7 @@ namespace f8
node->method = method; node->method = method;
node->url = url; node->url = url;
url_params.ToUrlEncodeStr(node->url_params); url_params.ToUrlEncodeStr(node->url_params);
// url_params.ToKVList(node->kv_params);
node->content = std::string(content); node->content = std::string(content);
if (headers) { if (headers) {
headers->DeepCopy(node->headers); headers->DeepCopy(node->headers);