clarin-eric / component-registry-rest

Component Registry back end
GNU General Public License v3.0
2 stars 1 forks source link

Compress REST service responses #15

Open twagoo opened 8 years ago

twagoo commented 8 years ago

https://trac.clarin.eu/ticket/820

Many of the responses of the Component Registry REST service often are quite lengthy bits XML (or JSON) that could easily be compressed. Jersey has support for this, which can be enabled either globally or in specific cases. See ​http://www.codingpedia.org/ama/how-to-compress-responses-in-java-rest-api-with-gzip-and-jersey/ for information and instructions.