Post/upload files support.

This commit is contained in:
Chunting Gu
2019-03-28 17:23:48 +08:00
parent 18db152419
commit a8e86dec5e
11 changed files with 201 additions and 32 deletions
+10
View File
@@ -6,6 +6,9 @@
#include <ostream>
#include <sstream>
#include "boost/uuid/random_generator.hpp"
#include "boost/uuid/uuid_io.hpp"
#include "webcc/logger.h"
using tcp = boost::asio::ip::tcp;
@@ -44,4 +47,11 @@ std::string GetHttpDateTimestamp() {
return ss.str();
}
std::string RandomUuid() {
boost::uuids::uuid u = boost::uuids::random_generator()();
std::stringstream ss;
ss << u;
return ss.str();
}
} // namespace webcc