AFNetworking / AFgzipRequestSerializer

gzip Request Serializer for AFNetworking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AFNetworking receive GZIP json

xumeng opened this issue · comments

Does AFN can receive the json that use gzip compress?

Yes. The Foundation URL Loading System automatically takes care of compressed responses.

I took the AFgzipRequestSerializer as an example of a RequestSerializer wrapping another one.
Also it's not needed for gunzip of responses, it would be nice, to have an example for the responseSerializer as well.
My use case is JWT (basically some String wrapping the JSON payload). See https://github.com/AFNetworking/AFNetworking/issues/2829