mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
.. Makes it easier to identify code that has been snaffled in from other repositories and check licensing .. The httpserver is now no longer optional, since it is delivered as contributed source.
20 lines
593 B
C++
20 lines
593 B
C++
/**
|
|
@file
|
|
@author Stefan Frings
|
|
*/
|
|
|
|
#include "httprequesthandler.h"
|
|
|
|
HttpRequestHandler::HttpRequestHandler(QObject* parent)
|
|
: QObject(parent)
|
|
{}
|
|
|
|
HttpRequestHandler::~HttpRequestHandler() {}
|
|
|
|
void HttpRequestHandler::service(HttpRequest& request, HttpResponse& response) {
|
|
qCritical("HttpRequestHandler: you need to override the service() function");
|
|
wDebug("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);
|
|
}
|