BeforeRequest Event
Fires before a DAV request is processed.
Syntax
class WebDAVServerBeforeRequestEventParams { public: qint64 ConnectionID(); const QString &HTTPMethod(); const QString &URL(); bool Accept(); void SetAccept(bool bAccept); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void BeforeRequest(WebDAVServerBeforeRequestEventParams *e);
// Or, subclass WebDAVServer and override this emitter function. virtual int FireBeforeRequest(WebDAVServerBeforeRequestEventParams *e) {...}
Remarks
This event fires before an incoming request is processed. ConnectionID indicates the client's unique connection ID; HTTPMethod specifies the HTTP method being used to submit the request, and URL signifies the object's URL.
Use Accept parameter to accept or reject the request.