ObjectiveDDP icon indicating copy to clipboard operation
ObjectiveDDP copied to clipboard

Why use NSURLConnection and not NSURLSession?

Open felipeflorencio opened this issue 10 years ago • 2 comments

Hello guys, coming here for a question, why use NSURLConnection and not NSURLSession, like apple launch past 2013 NSURLSession they had a lot of advantages.

If it was not something thought this view ok, i would like some talk about, and if you think be something interesting i could create some fork and implement.

Please share and talk here about this possibility :)

felipeflorencio avatar Sep 01 '15 12:09 felipeflorencio

Since NSURLConnection is only being used for oauth get request, I don't see the point in changing what is already working. Can you list some of the advantages and any current issues with the implementation?

mikey0000 avatar Sep 01 '15 20:09 mikey0000

Actually is more for getting better and improvement, size Apple has a history of deprecate code already is a good idea. For continue improvement lib i believe its good if we could upgrade with new methods.

Thinking in this way, for not right again one of great advantages you could see in this amazing post from objc.io : https://www.objc.io/issues/5-ios7/from-nsurlconnection-to-nsurlsession/

But, sure, its just for getting improvement to the lib and maybe start updating :D

felipeflorencio avatar Sep 02 '15 01:09 felipeflorencio