3#include <Kanoop/http/httpoperation.h>
4#include <Kanoop/serialization/iserializabletojson.h>
14 HttpDelete(
const QString& url,
const QByteArray& postBody = QByteArray()) :
16 _postBody(postBody) {}
21 HttpDelete(
const QString& url,
const ISerializableToJson& postBody) :
23 _postBody(postBody.serializeToJson()), _isJson(true) {}
HTTP DELETE operation executed asynchronously on a dedicated thread.
HttpDelete(const QString &url, const QByteArray &postBody=QByteArray())
Construct an HTTP DELETE operation with an optional raw body.
virtual void postDeleteHook()
Hook called after the DELETE reply is received.
HttpDelete(const QString &url, const ISerializableToJson &postBody)
Construct an HTTP DELETE operation with a JSON-serializable body.
virtual void preDeleteHook()
Hook called before the DELETE request is sent.
virtual void execute() override
Execute the HTTP DELETE request.
Base class for HTTP operations executed asynchronously on a dedicated thread.