Discuss this help topic in SecureBlackbox Forum

TElWebDAVServer.OnBeforeRequest

TElWebDAVServer     See also     


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


This event is fired before request processing.

Declaration

[C#/Java]
    event TSBWebDAVBeforeRequestEvent OnBeforeRequest;
    delegate void TSBWebDAVBeforeRequestEvent(object Sender, TElHTTPServerRequestParams Params, ref bool Accept, ref int StatusCode, ref string ReasonPhrase);

[VB.NET]
    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)

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

[C++]
    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);

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

Parameters

  • 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.

Description

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

See also:     OnRequest    

Discuss this help topic in SecureBlackbox Forum