Midware TAppSrvClient.OnBeforeSendRequest

From Overbyte
Revision as of 09:55, 14 May 2011 by Marie (talk | contribs) (Created page with ' Main page -> Midware component reference -> TAppSrvClient -> [[Midware_TAppSrvClient.OnBeforeSendRequ…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Main page -> Midware component reference -> TAppSrvClient -> OnBeforeSendRequest

Definition

property OnBeforeSendRequest: TNotifyEvent;

Description

Occurs before a request is ready to be sent to server.

The OnBeforeSendRequest event is triggered just before a request and his parameters are sent to the server. The event handler can process the header (RequestHeader, RequestHeaderLen) and the parameters (RequestBody, RequestBodyLen) to encrypt or compress them. If needed, the event handler can reallocate the data elsewhere. If needed, the OnAfterSendRequest event handler can be used to free allocated resources.