Skip to content

Conversation

@cjc8
Copy link
Collaborator

@cjc8 cjc8 commented Mar 25, 2022

No description provided.

@cjc8 cjc8 requested a review from schrockblock March 25, 2022 17:49
Copy link
Collaborator

@schrockblock schrockblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of suggestions

var responseHandler: (URLResponse?) -> Void { get set }
var httpResponseHandler: (HTTPURLResponse) -> Void { get set }
var dataHandler: (Data?) -> Void { get set }
var urlHandler: (URL?) -> Void { get set }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the URL to the file on the system? If so, I think we need a clearer name, I though this was the request URL for like 10m

dataTask?.resume()
call.responder?.taskHandler(dataTask)
call.responder?.taskHandler(dataTask as? URLSessionDataTask)
call.responder?.downloadTaskHandler(dataTask as? URLSessionDownloadTask)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should only send one of these each time, not both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants