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.
|
#include <httprequesthandler.h>
Public Member Functions | |
HttpRequestHandler (QObject *parent=NULL) | |
virtual | ~HttpRequestHandler () |
virtual void | service (HttpRequest &request, HttpResponse &response) |
The request handler generates a response for each HTTP request. Web Applications usually have one central request handler that maps incoming requests to several controllers (servlets) based on the requested path.
You need to override the service() method or you will always get an HTTP error 501.
Definition at line 29 of file httprequesthandler.h.
HttpRequestHandler::HttpRequestHandler | ( | QObject * | parent = NULL | ) |
|
virtual |
|
virtual |
Generate a response for an incoming HTTP request.
request | The received HTTP request |
response | Must be used to return the response |
Reimplemented in qtwebapp::StaticFileController, and WebAPIRequestMapper.
Definition at line 17 of file httprequesthandler.cpp.
References qtwebapp::HttpRequest::getMethod(), qtwebapp::HttpRequest::getPath(), qtwebapp::HttpRequest::getVersion(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by qtwebapp::HttpConnectionHandler::read().