Added new HTTP server (tiny wrapper on top of libuv + http_parser), removed libmicrohttpd support.

This commit is contained in:
XMRig 2019-03-29 12:33:11 +07:00
parent 725796a1ab
commit 01ad6bf2d9
29 changed files with 4312 additions and 237 deletions

View file

@ -25,7 +25,6 @@
#include "3rdparty/rapidjson/document.h"
#include "base/io/Json.h"
#include "base/io/log/Log.h"
#include "base/net/http/Http.h"
@ -92,18 +91,6 @@ void xmrig::Http::load(const rapidjson::Value &http)
}
void xmrig::Http::print() const
{
# ifdef XMRIG_FEATURE_API
if (!isEnabled()) {
return;
}
Log::print(GREEN_BOLD(" * ") WHITE_BOLD("%-13s") BLUE_BOLD("http://%s:%d"), "HTTP API", host().data(), port());
# endif
}
void xmrig::Http::setPort(int port)
{
if (port >= 0 && port <= 65536) {