Initial client API V2

This commit is contained in:
Chunting Gu
2019-03-06 11:13:33 +08:00
parent b38b7e6d38
commit 9b8304f06c
38 changed files with 777 additions and 362 deletions
+2 -9
View File
@@ -1,18 +1,11 @@
#include "webcc/globals.h"
#include "boost/algorithm/string.hpp"
namespace webcc {
// -----------------------------------------------------------------------------
const std::string kHttpHead = "HEAD";
const std::string kHttpGet = "GET";
const std::string kHttpPost = "POST";
const std::string kHttpPatch = "PATCH";
const std::string kHttpPut = "PUT";
const std::string kHttpDelete = "DELETE";
// -----------------------------------------------------------------------------
const char* DescribeError(Error error) {
switch (error) {
case kHostResolveError: