Internet Direct (Indy) Version 9.0.2 Beta
TOnCreatePostStream
Allows creation of the stream used in client POST or GET requests.

TOnCreatePostStream = procedure (ASender: TIdPeerThread; var VPostStream: TStream) of object;
Description
TOnCreatePostStream is an event type signalled when an executing threaded client request needs to create a stream for a pending HTTP POST or GET request. Applications must assign a procedure to the event handler to allow responding to the event notification. The event handler may assign a stream clzass instance to VPostStream, or set VPostStream to Nil to allow the default steam handler for the client thread.