Question

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?

Était-ce utile?

La solution

call the ServerResource#setResponseEntityBuffering(true) method

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top