Midware TAppServer.OnBeforeSendReply
Main page -> Midware component reference -> TAppServer -> OnBeforeSendReply
Definition
property OnBeforeSendReply: TClientEvent;
Description
Occurs just before a reply is sent to the client.
The OnBeforeSendReply event is called when a reply is ready to be transmitted to the client. A reply is made of a header and a body which are accessible thru the ClientWSocket property. The event has the possibility to process the header and body to encrypt or compress them. It can even allocate some memory for holding the processed header and body. Use the OnAfterSendReply to free any allocated memory. The processed data must *not* contains CR/LF pair as it is used by the client to delimit the reply. If processed data has CR/LF, then it must be escaped in some way.