update docs for cpp http api
This commit is contained in:
parent
f1fe7e2538
commit
ca57beae3e
|
@ -124,6 +124,7 @@ int CHttpClient::Get(const std::string &strUrl, const std::string &filename, boo
|
|||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, OnDebug);
|
||||
}
|
||||
curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, 4096);
|
||||
curl_easy_setopt(curl, CURLOPT_URL, UrlEncode(strUrl).c_str());
|
||||
curl_easy_setopt(curl, CURLOPT_READFUNCTION, NULL);
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, NULL);
|
||||
|
|
|
@ -14,6 +14,8 @@ bool correctness = true;
|
|||
bool lcorrectness = true;
|
||||
bool ucorrectness = true;
|
||||
|
||||
// before you run this example, make sure that you have started up ghttp service (using bin/ghttp db_name port)
|
||||
|
||||
pthread_mutex_t mutex;
|
||||
|
||||
string int2string(int n)
|
||||
|
|
|
@ -14,6 +14,8 @@ bool correctness = true;
|
|||
bool lcorrectness = true;
|
||||
bool ucorrectness = true;
|
||||
|
||||
// before you run this example, make sure that you have started up ghttp service (using bin/ghttp db_name port)
|
||||
|
||||
pthread_mutex_t mutex;
|
||||
|
||||
string int2string(int n)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <string>
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
// before run this example, you must start up the GStore server at first (use command ./gserver).
|
||||
// before you run this example, make sure that you have started up ghttp service (using bin/ghttp db_name port)
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
// initialize the GStore server's IP address and port.
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "client.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
// before you run this example, make sure that you have started up ghttp service (using bin/ghttp db_name port)
|
||||
int main()
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue