ASIHTTPRequest is a set of APIs that encapsulate the CFNetwork API and is very simple to use. It is written in Objective-C and can be used in applications on Mac OS X and iOS platforms. ASIHTTPRequest is suitable for basic HTTP requests and interactions between REST-based services
- l Through a simple interface, you can complete the work of submitting data to the server and obtaining data from the server
- l The downloaded data can be stored in the memory or directly to the disk
- l Can upload local files to the server
- l You can easily access and manipulate the request and returned Http header information
- l You can get the upload or download progress information, providing a better experience for the application
ASIHTTPRequest is an extremely powerful HTTP access open source project. Let simple API complete complex functions,
- table of Contents
- Initiate a synchronization request
- Create an asynchronous request
- Queue request
- Request queue context
- ASINetworkQueues, its delegate provides richer functions
- Cancel an asynchronous request
- Safe memory reclamation recommendations
- Upload data to the server
- download file
- Get response information
- Get request progress
- cookie support
- Resumable upload of large files
- ASIDownloadCache set download cache
- Coexistence of multiple caches
- Caching strategy
- Cache storage method
- Cache other features
- Implement a custom cache
- Use proxy request
- ASIHTTPRequest, other characteristics of the request
ASIHTTPRequest is an extremely powerful HTTP access open source project. Let simple API complete complex functions,
Such as: asynchronous request, queue request, GZIP compression, caching, resumable uploading, progress tracking, uploading files, HTTP authentication In the new version,
the support of
Objective-C
closure block has also been added
, making our code lighter Simple and flexible.
The following examples illustrate its API usage.