carson-katri / swift-request

Declarative HTTP networking, designed for SwiftUI
MIT License
727 stars 41 forks source link

Question: Is there support for progress for transfers? #67

Open jhoughjr opened 1 year ago

jhoughjr commented 1 year ago

I've done some looking and dont see any way to do what URLSessionTaskDelegate enables.


        _ session: URLSession, 
        task: URLSessionTask, 
        didSendBodyData bytesSent: Int64, 
        totalBytesSent: Int64, 
        totalBytesExpectedToSend: Int64
     )```
Im brainstorming what the api might look like and how it could work.
I assume this all wraps URLSessionTask so it feels it should be doable, but I wanted your thoughts before I went far.