-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does it work with gzip? #256
Comments
What do you mean by "work with gzip"? |
Thanks, @tkrajacic. You are correct—the underlying Foundation URL Loading System handles this automatically. |
For all the people coming here like me wondering how to GZIP the body of the request produced by Alamofire's Provided you use: https://github.com/1024jp/NSData-GZIP Examples:
|
@blender, I am struggling using your NSData extension. Just posted a question in your Issues on GitHub would be grateful for your assistance |
@Hakkoos unfortunately I'm not the maintainer nor work on https://github.com/1024jp/NSData-GZIP. I'm afraid I can't help you there. |
Thanks @blender |
Hey all, Just needed to zip the JSON body of an Alamofire Request and end up in this post, too bad it's not compatible with Alamofire right now. But I've created a new ParameterEncoding class that uses Gzip compression for the JSON request and it works flawlessly. Here it is. You just use it this way: Cheers! |
Hello, I used your extension..but it still give me error like cannot decode raw data when I encode GZip data. |
That's just a question.
Does Alamofire work with gzip?
Thanks a lot.
The text was updated successfully, but these errors were encountered: