1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Added Stefan Frings' QtWebApp httpserver

This commit is contained in:
f4exb
2017-08-23 18:47:07 +02:00
parent 9a1b60c6ec
commit 4adf80abc3
29 changed files with 3849 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
/**
@file
@author Stefan Frings
*/
#include "httprequesthandler.h"
using namespace stefanfrings;
HttpRequestHandler::HttpRequestHandler(QObject* parent)
: QObject(parent)
{}
HttpRequestHandler::~HttpRequestHandler()
{}
void HttpRequestHandler::service(HttpRequest& request, HttpResponse& response)
{
qCritical("HttpRequestHandler: you need to override the service() function");
qDebug("HttpRequestHandler: request=%s %s %s",request.getMethod().data(),request.getPath().data(),request.getVersion().data());
response.setStatus(501,"not implemented");
response.write("501 not implemented",true);
}