2017-08-23 12:47:07 -04:00
|
|
|
/**
|
|
|
|
@file
|
|
|
|
@author Stefan Frings
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "httprequesthandler.h"
|
|
|
|
|
2017-11-11 03:32:15 -05:00
|
|
|
using namespace qtwebapp;
|
2017-08-23 12:47:07 -04:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|