Created
March 2, 2016 07:15
-
-
Save codenameone/9a4c6f49d836ca173235 to your computer and use it in GitHub Desktop.
Enabling gzip requests for a Codename One ConnectionRequest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GZConnectionRequest con = new GZConnectionRequest(); | |
con.addRequestHeader("Accept-Encoding", "gzip"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage of GZConnectionRequest.
From the Codename One project