Midware TAppSrvClient.OnBeforeSendRequest

From Overbyte
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.