SecureBlackbox Lite 2020 Python Edition

Questions / Feedback?

on_dynamic_data_needed Event

Requests a portion of data to be uploaded from the application.

Syntax

class RESTClientDynamicDataNeededEventParams(object):
  @property
  def bytes_needed() -> int: ...

# In class RESTClient:
@property
def on_dynamic_data_needed() -> Callable[[RESTClientDynamicDataNeededEventParams], None]: ...
@on_dynamic_data_needed.setter
def on_dynamic_data_needed(event_hook: Callable[[RESTClientDynamicDataNeededEventParams], None]) -> None: ...

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 dynamic_data. If no more data is available to upload (the whole document has been sent), leave dynamic_data empty.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 Python Edition - Version 20.0 [Build 8166]