DynamicDataNeeded Event
Requests a portion of data to be uploaded from the application.
Syntax
ANSI (Cross Platform) virtual int FireDynamicDataNeeded(RESTClientDynamicDataNeededEventParams *e);
typedef struct {
int BytesNeeded; int reserved; } RESTClientDynamicDataNeededEventParams; Unicode (Windows) virtual INT FireDynamicDataNeeded(RESTClientDynamicDataNeededEventParams *e);
typedef struct {
INT BytesNeeded; INT reserved; } RESTClientDynamicDataNeededEventParams;
- (void)onDynamicDataNeeded:(int)bytesNeeded;
#define EID_RESTCLIENT_DYNAMICDATANEEDED 5 virtual INT SECUREBLACKBOXLITE_CALL FireDynamicDataNeeded(INT &iBytesNeeded);
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.