BeforeRequest Event
Fires before a DAV request is processed.
Syntax
public event OnBeforeRequestHandler OnBeforeRequest; public delegate void OnBeforeRequestHandler(object sender, WebdavserverBeforeRequestEventArgs e); public class WebdavserverBeforeRequestEventArgs : EventArgs { public long ConnectionID { get; } public string HTTPMethod { get; } public string URL { get; } public bool Accept { get; set; } }
Public Event OnBeforeRequest As OnBeforeRequestHandler Public Delegate Sub OnBeforeRequestHandler(sender As Object, e As WebdavserverBeforeRequestEventArgs) Public Class WebdavserverBeforeRequestEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public ReadOnly Property HTTPMethod As String Public ReadOnly Property URL As String Public Property Accept As Boolean End Class
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.