Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created March 2, 2016 07:15
Show Gist options
  • Save codenameone/9a4c6f49d836ca173235 to your computer and use it in GitHub Desktop.
Save codenameone/9a4c6f49d836ca173235 to your computer and use it in GitHub Desktop.
Enabling gzip requests for a Codename One ConnectionRequest
GZConnectionRequest con = new GZConnectionRequest();
con.addRequestHeader("Accept-Encoding", "gzip");
@codenameone
Copy link
Author

Sample usage of GZConnectionRequest.

From the Codename One project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment