tusc library

Classes

TusCache
Implementations of this interface are used to lookup a fingerprint with the corresponding url.
TusClient
This is a client for the tus(https://tus.io) protocol.
TusMemoryCache
This class is used to cache upload url in memory and to resume upload later.
TusPersistentCache
This class is used to cache upload url in a persistent way to resume upload later.

Extensions

IntExtension on int

Typedefs

CompleteCallback = void Function(Response response)
Callback to listen when upload finishes
ProgressCallback = void Function(int count, int total, Response? response)
Callback to listen the progress for sending data. count the length of the bytes that have been sent. total the content length.

Exceptions / Errors

ProtocolException
This exception is thrown if the server sends a request with an unexpected status code or missing/invalid headers.