ASIHTTPRequest vs AFNetworking vs NSUrlRequest

前端 未结 4 574
名媛妹妹
名媛妹妹 2021-02-01 03:29

In the past I have use ASIHTTPRequest but now there is NSURLRequest. Should we be using the NSURLRequest now? Are there any disadvantages

4条回答
  •  后悔当初
    2021-02-01 04:19

    The asihttprequest is outdated library that doesn't support now for development. Do not use it.

    the NSURLRequest is default iOS (cocoa) class to use. I recommend it for very little usage because you will need to write lots of code to handle connection responses. On top of it are build all http libraries.

    The AFNetwoking is standart now for http, imho. It uses blocks for callbacks, it supports different types of data json, xml etc. it is well designed and can be easily subclassed. it is best.

提交回复
热议问题