Post/upload files support.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user