19 qCritical(
"HttpRequestHandler: you need to override the service() function");
20 qDebug(
"HttpRequestHandler: request=%s %s %s",request.
getMethod().data(),request.
getPath().data(),request.
getVersion().data());
21 response.
setStatus(501,
"not implemented");
22 response.
write(
"501 not implemented",
true);
QByteArray getPath() const
QByteArray getVersion() const
virtual ~HttpRequestHandler()
HttpRequestHandler(QObject *parent=NULL)
void write(QByteArray data, bool lastPart=false)
void setStatus(int statusCode, QByteArray description=QByteArray())
QByteArray getMethod() const
virtual void service(HttpRequest &request, HttpResponse &response)