Search code examples
restrestletchunked

How to not deliver RESTlet service response in chunks


I am using a RESTlet REST web service to deliver data via a GET to my iOS and Android apps. Occasionally I get errors with the connection on the app side. I put the url to the service in a browser to invoke a GET and see a response. I noticed that the contents of the service isn't delivered immediately but in chunks or a few lines at a time. The data type of the response is JSON.

Is there a way to get the entire response in one chunk when the service is invoked?


Solution

  • call the ServerResource#setResponseEntityBuffering(true) method