Discuss this help topic in SecureBlackbox Forum

TElHTTPSServer.OnRequestHeadersReceived

TElHTTPSServer     See also     


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


This event is fired when request headers have been received.

Declaration

[C#/Java]
    event TSBHTTPRequestHeadersEvent OnRequestHeadersReceived;
    delegate void TSBHTTPRequestHeadersEvent(Object Sender, TElHTTPServerRequestParams RequestInfo, ref bool Accepted);

[VB.NET]
    Event OnRequestHeadersReceived As TSBHTTPRequestHeadersEvent
    Delegate Sub TSBHTTPRequestHeadersEvent(ByVal Sender As Object, ByVal RequestInfo As TElHTTPServerRequestParams, ByRef Accepted As Boolean)

[Pascal]
    property OnRequestHeadersReceived : TSBHTTPRequestHeadersEvent;
    TSBHTTPRequestHeadersEvent = procedure(Sender : TObject; RequestInfo : TElHTTPServerRequestParams; var Accepted : boolean) of object;

[C++]
    void get_OnRequestHeadersReceived(TSBHTTPRequestHeadersEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnRequestHeadersReceived(TSBHTTPRequestHeadersEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBHTTPRequestHeadersEvent)(void * _ObjectData, TObjectHandle Sender, TElHTTPServerRequestParamsHandle RequestInfo, int8_t &Accepted);

[PHP]
    TSBHTTPRequestHeadersEvent|callable|NULL get_OnRequestHeadersReceived()
    void set_OnRequestHeadersReceived(TSBHTTPRequestHeadersEvent|callable|NULL $Value)
    callable TSBHTTPRequestHeadersEvent(TObject $Sender, TElHTTPServerRequestParams $RequestInfo, bool &$Accepted)

Parameters

  • RequestInfo - parameters of the request
  • Accepted - set this parameter to True in order to accept the headers

Description

    This event is fired by TElHTTPSServer when request headers are received. The handler should return, whether to accept these headers, via Accepted parameter.

See also:     OnRequestBodyReceived     OnPreparedHeaders    

Discuss this help topic in SecureBlackbox Forum