Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPServer.OnCreatePostStream Event

Event handler that allows creation of the POST stream for a client thread.

Pascal
property OnCreatePostStream;
Parameters 
Description 
ASender 
Client conncetion for the event notification.
 
VPostStream 
Steam allocated for the HTTP post request. 

OnCreatePostStream is a TOnCreatePostStream property that represents the event handler triggered when a client thread needs to create a stream used in an HTTP POST request. OnCreatePostStream is used during execution of the thread client connection identified by ASender. OnCreatePostStream is a published property in TIdHTTPServer

The server implementation may assign a procedure to the event handler to allow responding to the event notification. The event handler can perform processing required prior to creation of a stream class instance. The event handler can create and assign a stream class instance to VPostStream when appropriate, or retun the value Nil. If VPostStream is unassigned, a TIdStringStream instance will be created prior to execution of a command handler for the HTTP POST request.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.