Discuss this help topic in SecureBlackbox Forum


TElWebDAVServer     See also     

Filter: C#  VB.NET  Pascal  C++  PHP  Java  

This event is fired before request processing.


    event TSBWebDAVBeforeRequestEvent OnBeforeRequest;
    delegate void TSBWebDAVBeforeRequestEvent(Object Sender, TElHTTPServerRequestParams Params, ref bool Accept, ref int StatusCode, ref string ReasonPhrase);

    Event OnBeforeRequest As TSBWebDAVBeforeRequestEvent
    Delegate Sub TSBWebDAVBeforeRequestEvent(ByVal Sender As Object, ByVal Params As TElHTTPServerRequestParams, ByRef Accept As Boolean, ByRef StatusCode As Integer, ByRef ReasonPhrase As String)

    property OnBeforeRequest : TSBWebDAVBeforeRequestEvent;
    TSBWebDAVBeforeRequestEvent = procedure(Sender : TObject; const Params : TElHTTPServerRequestParams; var Accept : boolean; var StatusCode : integer; var ReasonPhrase : string) of object;

    void get_OnBeforeRequest(TSBWebDAVBeforeRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeRequest(TSBWebDAVBeforeRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBWebDAVBeforeRequestEvent)(void * _ObjectData, TObjectHandle Sender, TElHTTPServerRequestParamsHandle Params, int8_t &Accept, int32_t &StatusCode, char * pcReasonPhrase, int32_t &szReasonPhrase);

    TSBWebDAVBeforeRequestEvent|callable|NULL get_OnBeforeRequest()
    void set_OnBeforeRequest(TSBWebDAVBeforeRequestEvent|callable|NULL $Value)
    callable TSBWebDAVBeforeRequestEvent(TObject $Sender, TElHTTPServerRequestParams $Params, bool &$Accept, integer &$StatusCode, string &$ReasonPhrase)

    TSBWebDAVBeforeRequestEvent getOnBeforeRequest();
    void setOnBeforeRequest(TSBWebDAVBeforeRequestEvent Value);
    TSBWebDAVBeforeRequestEvent.Callback OnBeforeRequest = new TSBWebDAVBeforeRequestEvent.Callback() {
        public void TSBWebDAVBeforeRequestEventCallback(TObject Sender, TElHTTPServerRequestParams Params, TSBBoolean Accept, TSBInteger StatusCode, TSBString ReasonPhrase) {


  • Params - parameters of the request.
  • Accept - set this parameter to True to accept the request; set it to False to decline the request.
  • StatusCode - specifies status code of the server's response.
  • ReasonPhrase - specifies specifies server's response Reason Phrase (please see the RFC #2616 for further information).
  • pcReasonPhrase - specifies specifies server's response Reason Phrase (please see the RFC #2616 for further information).
  • szReasonPhrase - the length of pcReasonPhrase.


    This event is fired before processing a client's request.

See also:     OnRequest    

Discuss this help topic in SecureBlackbox Forum