Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here


gzip Request Serializer for AFNetworking

Subscribe to updates I use AFgzipRequestSerializer

Statistics on AFgzipRequestSerializer

Number of watchers on Github 147
Number of open issues 8
Average time to close an issue 4 days
Main language Objective-C
Average time to merge a PR 6 days
Open pull requests 4+
Closed pull requests 0+
Last commit over 4 years ago
Repo Created over 6 years ago
Repo Last Updated over 2 years ago
Size 5 KB
Organization / Authorafnetworking
Page Updated
Do you use AFgzipRequestSerializer? Leave a review!
View open issues (8)
View AFgzipRequestSerializer activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating AFgzipRequestSerializer for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


AFgzipRequestSerializer applies gzip compression to requests generated by a specified serializer, setting the appropriate Content-Encoding header.

Example Usage

AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
manager.requestSerializer = [AFgzipRequestSerializer serializerWithSerializer:[AFJSONRequestSerializer serializer]];

[manager POST:@"http://example.com/"
   parameters:@{@"foo": @"bar"}
      success:^(NSURLSessionDataTask *task, id responseObject) {
        NSLog(@"%@", responseObject);
      failure:^(NSURLSessionDataTask *task, NSError *error) {
        NSLog(@"[Error] %@", error);
    POST http://example.com/

    Accept-Content: application/json
    Content-Type: application/json
    Content-Encoding: gzip

    (gzip-compressed JSON)


Mattt Thompson

  • http://github.com/mattt
  • http://twitter.com/mattt
  • m@mattt.me


AFgzipRequestSerializer is available under the MIT license. See the LICENSE file for more info.

AFgzipRequestSerializer open issues Ask a question     (View All Issues)
  • almost 4 years Can used in get request
  • about 4 years integrating issue with AFNetworking 3.1.0
  • over 4 years AFNetworking 3.0
  • over 4 years The body of multipart/form-data request is not compressed
AFgzipRequestSerializer open pull requests (View All Pulls)
  • Close #7
  • Update podspec to allow AFNetworking >= 2.0
  • Dependency version changed
  • Upgrade AFNetworking to 3 and up version to 0.1.0
AFgzipRequestSerializer list of languages used
Other projects in Objective-C