SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
httprequesthandler.cpp
Go to the documentation of this file.
1 
6 #include "httprequesthandler.h"
7 
8 using namespace qtwebapp;
9 
11  : QObject(parent)
12 {}
13 
15 {}
16 
18 {
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);
23 }
QByteArray getPath() const
QByteArray getVersion() const
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)