mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
30 lines
563 B
C++
30 lines
563 B
C++
/**
|
|
@file
|
|
@author Stefan Frings
|
|
*/
|
|
|
|
#ifndef DUMPCONTROLLER_H
|
|
#define DUMPCONTROLLER_H
|
|
|
|
#include "httprequest.h"
|
|
#include "httpresponse.h"
|
|
#include "httprequesthandler.h"
|
|
|
|
/**
|
|
This controller dumps the received HTTP request in the response.
|
|
*/
|
|
|
|
class DumpController : public HttpRequestHandler {
|
|
Q_OBJECT
|
|
Q_DISABLE_COPY(DumpController);
|
|
public:
|
|
|
|
/** Constructor */
|
|
DumpController();
|
|
|
|
/** Generates the response */
|
|
void service(HttpRequest& request, HttpResponse& response);
|
|
};
|
|
|
|
#endif // DUMPCONTROLLER_H
|