mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-30 03:38:55 -05:00
24 lines
624 B
C++
24 lines
624 B
C++
/**
|
|
@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);
|
|
}
|