Restart sending of the file specified by the Etag property.
def restart() -> None: ...
This method should be called when using the AS2 restart functionality. When called, the class will process the file and cache the processed contents to the restart_directory. Before sending, the etag property will be populated with a unique etag which identifies the processed file.
If sending is interrupted or fails, this method should be called to restart sending of the previously processed file starting where the interruption occurred. In order to restart from the last transfer, the etag must be populated with the value from the last connection.
NOTE: When using restart functionality, the data is completely processed to the restart_directory before sending begins.