Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

AFgzipRequestSerializer

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 almost 4 years ago
Repo Created over 5 years ago
Repo Last Updated over 1 year ago
Size 5 KB
Organization / Authorafnetworking
Contributors4
Page Updated
Do you use AFgzipRequestSerializer? Leave a review!
View open issues (8)
View AFgzipRequestSerializer activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating AFgzipRequestSerializer for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

AFgzipRequestSerializer

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)

Contact

Mattt Thompson

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

License

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

AFgzipRequestSerializer open issues Ask a question     (View All Issues)
  • about 3 years Can used in get request
  • over 3 years integrating issue with AFNetworking 3.1.0
  • almost 4 years AFNetworking 3.0
  • almost 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