I am using $ http on angularjs and I have a pretty big send request.
I am wondering if there is a way to do something like this:
content = "I'm a very long content string!" $http.post content, url, 'gzip'
and the content request is sent automatically, and add the appropriate request header so that the server knows that you need to unpack the content and pass it to the controller correctly.
I can gzip the content on my side and re-open it manually on the server, but I thought there must be some way to do this automatically. There is?
source share