Safari
Safari

Reputation: 11935

RestKit and gzipped json

I have a question about RestKit framework.

I downloaded the restkit framework from here and I can try to use RK with my URL example. My question is: Can Restkit loading gzipped json? I found this question Restkit loading gzipped json

but I not understood how can I set [[RKClient sharedClient] setValue:@"gzip, deflate" forHTTPHeaderField:@"Accept-Encoding"] (in my code this code line not work, not exist the methods)

How RestKit load the result of a request that use gzip, deflate?

Upvotes: 0

Views: 450

Answers (1)

Wain
Wain

Reputation: 119031

All that line is trying to do is set a header to be sent to the server. Latest SDK would be:

[[manager HTTPClient] setDefaultHeader:@"Accept-Encoding" value:@"gzip, deflate"]

Where manager is your RKObjectManager instance.

Upvotes: 4

Related Questions