Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Alamofire by default request for gzipped response?

I am using Alamofire for networking in my project. As my server support gzipped response. I wanted to know whether Alamofire in itself support gzip or do i need to exclusively set in its header as ["Accept-Encoding":"gzip"]. I tried both the cases and did not find any difference in the size of response. So I was assuming that it requests for gzip response by default. Any light on this topic would be useful.

Also is there a way to check for raw response with Alamofire?

like image 792
Shobhit C Avatar asked Dec 21 '16 09:12

Shobhit C


1 Answers

Alamofire handle it by itself, and don't need to do anything... You can find more here: https://github.com/Alamofire/Alamofire/issues/256

like image 80
Hamid Shahsavari Avatar answered Sep 21 '22 23:09

Hamid Shahsavari