DynamicDataNeeded Event
Requests a portion of data to be uploaded from the application.
Syntax
class HTTPClientDynamicDataNeededEventParams { public: int BytesNeeded(); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void DynamicDataNeeded(HTTPClientDynamicDataNeededEventParams *e);
// Or, subclass HTTPClient and override this emitter function. virtual int FireDynamicDataNeeded(HTTPClientDynamicDataNeededEventParams *e) {...}
Remarks
If dynamic ('streaming') variants of PUT or POST methods are used, this event is fired periodically to request portions of data to be sent to the server.
When handling this event, assign the next portion of data of BytesNeeded length (or less) to DynamicData. If no more data is available to upload (the whole document has been sent), leave DynamicData empty.