Latest 0.0.2
Homepage https://github.com/AFNetworking/AFgzipRequestSerializer
License MIT
Platforms ios 6.0, osx 10.8, requires ARC
Dependencies AFNetworking, Godzippa
Authors

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

License

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

Latest podspec

{
    "name": "AFgzipRequestSerializer",
    "version": "0.0.2",
    "summary": "gzip Request Serializer for AFNetworking",
    "homepage": "https://github.com/AFNetworking/AFgzipRequestSerializer",
    "social_media_url": "https://twitter.com/AFNetworking",
    "license": "MIT",
    "authors": {
        "Mattt Thompson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/AFNetworking/AFgzipRequestSerializer.git",
        "tag": "0.0.2"
    },
    "source_files": "AFgzipRequestSerializer",
    "requires_arc": true,
    "platforms": {
        "ios": "6.0",
        "osx": "10.8"
    },
    "dependencies": {
        "AFNetworking": [
            "~> 2.0"
        ],
        "Godzippa": [
            "~> 1.0"
        ]
    }
}

Pin It on Pinterest

Share This