swift-nio-extras
swift-nio-extras copied to clipboard
Import HTTP resumable upload sample code
Support HTTP resumable upload.
(NIOResumableUpload depends on NIOHTTPTypes, so this PR includes changes in #202. Please leave comments specific for NIOHTTPTypes in #202)
Motivation:
Supporting HTTP resumable upload protocol defined in https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-resumable-upload-01
Modifications:
2 new public classes, HTTPResumableUploadHandler
and HTTPResumableUploadContext
, and a few other supporting objects to manage resumable uploads and translate them into regular uploads.
@FranzBusch want to take another quick look at this?
I think we should add this here: it's in support of sample code that was released with WWDC, and we should be willing to support that code.